Fix preferences window raise

This commit is contained in:
Ximi1970
2023-09-02 14:59:41 +02:00
parent 0b1b485923
commit 8f9e75f4de
3 changed files with 16 additions and 1 deletions

View File

@@ -525,6 +525,16 @@ void PreferencesDialog::setCloseAppArgs( QString args )
}
/*
* Handle show dialog signal
*/
void PreferencesDialog::slotShowDialog()
{
showNormal();
activateWindow();
}
/*
* Handle the accept signal
*/

View File

@@ -275,6 +275,11 @@ class PreferencesDialog : public QDialog
public slots:
/**
* @brief slotShowDialog. Slot for handling the show the dialog.
*/
void slotShowDialog();
/**
* @brief slotDebugChange. Slot for handling debug change signals.
*/

View File

@@ -245,7 +245,7 @@ void SysTrayX::createMenu()
m_pref_action = new QAction(tr("&Preferences"), this);
m_pref_action->setIcon( QIcon( ":/files/icons/gtk-preferences.png" ) );
connect( m_pref_action, &QAction::triggered, m_pref_dialog, &PreferencesDialog::showNormal );
connect( m_pref_action, &QAction::triggered, m_pref_dialog, &PreferencesDialog::slotShowDialog );
m_about_action = new QAction(tr("&About"), this);
m_about_action->setIcon( QIcon( ":/files/icons/help-about.png" ) );