Commit 63007d2b authored by Jarek Kobus's avatar Jarek Kobus

Give SessionDialog a parent widget

In this way there is no additional item on taskbar

Change-Id: Ib946064f3d859a61eaa5495bc4fb7740b641e154
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent fad5cc01
......@@ -1165,7 +1165,7 @@ void ProjectExplorerPlugin::showSessionManager()
} else {
d->m_session->save();
}
SessionDialog sessionDialog(d->m_session);
SessionDialog sessionDialog(d->m_session, Core::ICore::instance()->mainWindow());
sessionDialog.setAutoLoadSession(d->m_projectExplorerSettings.autorestoreLastSession);
sessionDialog.exec();
d->m_projectExplorerSettings.autorestoreLastSession = sessionDialog.autoLoadSession();
......
......@@ -145,8 +145,8 @@ bool SessionNameInputDialog::isSwitchToRequested() const
}
SessionDialog::SessionDialog(SessionManager *sessionManager)
: m_sessionManager(sessionManager)
SessionDialog::SessionDialog(SessionManager *sessionManager, QWidget *parent)
: QDialog(parent), m_sessionManager(sessionManager)
{
m_ui.setupUi(this);
......
......@@ -48,7 +48,7 @@ class SessionDialog : public QDialog
{
Q_OBJECT
public:
SessionDialog(SessionManager *sessionManager);
SessionDialog(SessionManager *sessionManager, QWidget *parent = 0);
void setAutoLoadSession(bool);
bool autoLoadSession() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment