From d890cd2ebbf0a42d4fde74b592b728f663be7f1f Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Sat, 22 Jan 2022 22:02:57 +0200 Subject: [PATCH] qt: Update pause action status when paused without using action --- src/qt/qt_main.cpp | 4 ---- src/qt/qt_mainwindow.cpp | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/qt/qt_main.cpp b/src/qt/qt_main.cpp index 8039b78cd..6df56c6e6 100644 --- a/src/qt/qt_main.cpp +++ b/src/qt/qt_main.cpp @@ -113,10 +113,6 @@ int main(int argc, char* argv[]) { fmt.setSwapInterval(0); QSurfaceFormat::setDefaultFormat(fmt); app.setStyle(new StyleOverride()); - QDirIterator it(":", QDirIterator::Subdirectories); - while (it.hasNext()) { - qDebug() << it.next() << "\n"; - } #ifdef __APPLE__ CocoaEventFilter cocoafilter; diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index c24d8bcd1..209ed27b8 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -79,7 +79,7 @@ MainWindow::MainWindow(QWidget *parent) : toolbar_spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); ui->toolBar->addWidget(toolbar_spacer); - auto toolbar_label = new QLabel(); + auto toolbar_label = new QLabel(); ui->toolBar->addWidget(toolbar_label); this->setWindowIcon(QIcon(":/settings/win/icons/86Box-yellow.ico")); @@ -104,6 +104,7 @@ MainWindow::MainWindow(QWidget *parent) : toolbar_label->setText(QString("%1 - %2").arg(parts[1], parts.last())); } #endif + ui->actionPause->setChecked(dopause); }); connect(this, &MainWindow::getTitleForNonQtThread, this, &MainWindow::getTitle_, Qt::BlockingQueuedConnection);