Don't change window maximized state when clicking a notification

This commit is contained in:
Fabio Bas 2015-09-08 17:49:31 +02:00
parent 2a83f6dd4b
commit 4ee12f0b69
4 changed files with 8 additions and 6 deletions

View file

@ -599,7 +599,7 @@ MainWindow::MainWindow(QWidget *parent)
tabSupervisor = new TabSupervisor(client);
connect(tabSupervisor, SIGNAL(setMenu(QList<QMenu *>)), this, SLOT(updateTabMenu(QList<QMenu *>)));
connect(tabSupervisor, SIGNAL(localGameEnded()), this, SLOT(localGameEnded()));
connect(tabSupervisor, SIGNAL(maximize()), this, SLOT(maximize()));
connect(tabSupervisor, SIGNAL(showWindowIfHidden()), this, SLOT(showWindowIfHidden()));
tabSupervisor->addDeckEditorTab(0);
setCentralWidget(tabSupervisor);
@ -703,8 +703,10 @@ void MainWindow::pixmapCacheSizeChanged(int newSizeInMBs)
QPixmapCache::setCacheLimit(newSizeInMBs * 1024);
}
void MainWindow::maximize() {
showNormal();
void MainWindow::showWindowIfHidden() {
// keep the previous window state
setWindowState(windowState() & ~Qt::WindowMinimized);
show();
}
/* CARD UPDATER */