aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-02-28 13:04:44 -0600
committerGitHub <noreply@github.com>2021-02-28 13:04:44 -0600
commit5555b699f8c8d65ee413efd73ae41ebe6bcc1c3c (patch)
tree5e17f634096a66a8e45d3d3e093c90d57c5bcd72
parent9691fb762a1975329e4b9845c2fe851a61caf072 (diff)
parent1bb93cb7c02a726c3ff37ceffbd500faf0cc69f3 (diff)
Merge pull request #477 from AttorneyOnline/fix-css
Fix various bugs
-rw-r--r--src/aoapplication.cpp1
-rw-r--r--src/aooptionsdialog.cpp1
-rw-r--r--src/courtroom.cpp6
-rw-r--r--src/evidence.cpp6
4 files changed, 9 insertions, 5 deletions
diff --git a/src/aoapplication.cpp b/src/aoapplication.cpp
index 34afb28e..00845385 100644
--- a/src/aoapplication.cpp
+++ b/src/aoapplication.cpp
@@ -18,6 +18,7 @@ AOApplication::AOApplication(int &argc, char **argv) : QApplication(argc, argv)
discord = new AttorneyOnline::Discord();
QObject::connect(net_manager, SIGNAL(ms_connect_finished(bool, bool)),
SLOT(ms_connect_finished(bool, bool)));
+ qApp->setStyleSheet("QFrame {background-color:transparent;} QAbstractItemView {background-color: transparent; color: black;}; QLineEdit {background-color:transparent;}");
}
AOApplication::~AOApplication()
diff --git a/src/aooptionsdialog.cpp b/src/aooptionsdialog.cpp
index 9ca0865f..ce8e4aec 100644
--- a/src/aooptionsdialog.cpp
+++ b/src/aooptionsdialog.cpp
@@ -981,6 +981,7 @@ void AOOptionsDialog::save_pressed()
configini->setValue("stickyeffects", ui_stickyeffects_cb->isChecked());
configini->setValue("stickypres", ui_stickypres_cb->isChecked());
configini->setValue("customchat", ui_customchat_cb->isChecked());
+ configini->setValue("sticker", ui_sticker_cb->isChecked());
configini->setValue("automatic_logging_enabled", ui_log_cb->isChecked());
configini->setValue("continuous_playback", ui_continuous_cb->isChecked());
configini->setValue("category_stop", ui_category_stop_cb->isChecked());
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index c8d8320f..17da7522 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1256,9 +1256,12 @@ void Courtroom::set_background(QString p_background, bool display)
ui_vp_evidence_display->reset();
ui_vp_background->kill();
ui_vp_desk->kill();
+ QString f_side = current_side;
+ if (current_side == "")
+ f_side = ao_app->get_char_side(current_char);
set_scene(
QString::number(ao_app->get_desk_mod(current_char, current_emote)),
- current_side);
+ f_side);
}
}
@@ -1318,7 +1321,6 @@ void Courtroom::set_pos_dropdown(QStringList pos_dropdowns)
// Unblock the signals so the element can be used for setting pos again
ui_pos_dropdown->blockSignals(false);
- // Don't block the signals when setting side
set_side(current_side);
}
diff --git a/src/evidence.cpp b/src/evidence.cpp
index 8825753c..ec1fa7e3 100644
--- a/src/evidence.cpp
+++ b/src/evidence.cpp
@@ -256,7 +256,7 @@ void Courtroom::set_evidence_list(QVector<evi_type> &p_evi_list)
else if (compare_evidence_changed(
old_list.at(current_evidence),
local_evidence_list.at(current_evidence))) {
- QMessageBox *msgBox = new QMessageBox(this);
+ QMessageBox *msgBox = new QMessageBox;
msgBox->setAttribute(Qt::WA_DeleteOnClose);
msgBox->setText(tr("The piece of evidence you've been editing has changed."));
@@ -551,7 +551,7 @@ void Courtroom::on_evidence_x_clicked()
evidence_close();
return;
}
- QMessageBox *msgBox = new QMessageBox(this);
+ QMessageBox *msgBox = new QMessageBox;
msgBox->setAttribute(Qt::WA_DeleteOnClose);
msgBox->setText(tr("Evidence has been modified."));
msgBox->setInformativeText(tr("Do you want to save your changes?"));
@@ -655,7 +655,7 @@ void Courtroom::on_evidence_transfer_clicked()
private_evidence_list.append(f_evi);
}
- QMessageBox *msgBox = new QMessageBox(this);
+ QMessageBox *msgBox = new QMessageBox;
msgBox->setAttribute(Qt::WA_DeleteOnClose);
msgBox->setText(tr("\"%1\" has been transferred.").arg(name));
msgBox->setStandardButtons(QMessageBox::Ok);