Browse Source
Merge pull request #169 from csharpee/bugsbunny
open slot bug and extra spaces
pull/173/head
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
5 deletions
-
src/mainwindow.cpp
|
|
@ -304,7 +304,6 @@ void MainWindow::setupSettingsModal() { |
|
|
|
int theme_index = settings.comboBoxTheme->findText(Settings::getInstance()->get_theme_name(), Qt::MatchExactly); |
|
|
|
settings.comboBoxTheme->setCurrentIndex(theme_index); |
|
|
|
|
|
|
|
QObject::connect(settings.comboBoxTheme, SIGNAL(currentIndexChanged(QString)), this, SLOT(slot_change_theme(QString))); |
|
|
|
QObject::connect(settings.comboBoxTheme, &QComboBox::currentTextChanged, [=] (QString theme_name) { |
|
|
|
this->slot_change_theme(theme_name); |
|
|
|
QMessageBox::information(this, tr("Theme Change"), tr("This change can take a few seconds."), QMessageBox::Ok); |
|
|
@ -314,7 +313,6 @@ void MainWindow::setupSettingsModal() { |
|
|
|
QString ticker = QString::fromStdString( Settings::getInstance()->get_currency_name() ); |
|
|
|
int currency_index = settings.comboBoxCurrency->findText(ticker, Qt::MatchExactly); |
|
|
|
settings.comboBoxCurrency->setCurrentIndex(currency_index); |
|
|
|
QObject::connect(settings.comboBoxCurrency, SIGNAL(currentIndexChanged(QString)), this, SLOT(slot_change_currency(QString))); |
|
|
|
QObject::connect(settings.comboBoxCurrency, &QComboBox::currentTextChanged, [=] (QString ticker) { |
|
|
|
this->slot_change_currency(ticker.toStdString()); |
|
|
|
rpc->refresh(true); |
|
|
|