mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-05-07 15:27:22 +02:00
Fix preferences window raise
This commit is contained in:
@@ -525,6 +525,16 @@ void PreferencesDialog::setCloseAppArgs( QString args )
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Handle show dialog signal
|
||||
*/
|
||||
void PreferencesDialog::slotShowDialog()
|
||||
{
|
||||
showNormal();
|
||||
activateWindow();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Handle the accept signal
|
||||
*/
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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" ) );
|
||||
|
||||
Reference in New Issue
Block a user