|
|
@ -375,7 +375,7 @@ MainWindow::MainWindow(QWidget *parent) |
|
|
|
on_actionWarningMessages_triggered(m_ui->actionWarningMessages->isChecked()); |
|
|
|
on_actionWarningMessages_triggered(m_ui->actionWarningMessages->isChecked()); |
|
|
|
on_actionCriticalMessages_triggered(m_ui->actionCriticalMessages->isChecked()); |
|
|
|
on_actionCriticalMessages_triggered(m_ui->actionCriticalMessages->isChecked()); |
|
|
|
if (m_ui->actionSearchWidget->isChecked()) |
|
|
|
if (m_ui->actionSearchWidget->isChecked()) |
|
|
|
QTimer::singleShot(0, this, SLOT(on_actionSearchWidget_triggered())); |
|
|
|
QTimer::singleShot(0, this, &MainWindow::on_actionSearchWidget_triggered); |
|
|
|
|
|
|
|
|
|
|
|
// Auto shutdown actions
|
|
|
|
// Auto shutdown actions
|
|
|
|
QActionGroup *autoShutdownGroup = new QActionGroup(this); |
|
|
|
QActionGroup *autoShutdownGroup = new QActionGroup(this); |
|
|
@ -1213,7 +1213,7 @@ bool MainWindow::event(QEvent *e) |
|
|
|
if (!hasModalWindow) { |
|
|
|
if (!hasModalWindow) { |
|
|
|
qDebug("Minimize to Tray enabled, hiding!"); |
|
|
|
qDebug("Minimize to Tray enabled, hiding!"); |
|
|
|
e->ignore(); |
|
|
|
e->ignore(); |
|
|
|
QTimer::singleShot(0, this, SLOT(hide())); |
|
|
|
QTimer::singleShot(0, this, &QWidget::hide); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|