mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Merge pull request #1485 from ctrlaltca/fix_notification_click
Don't change window maximized state when clicking a notification
This commit is contained in:
commit
aac980a8cb
4 changed files with 8 additions and 6 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue