diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-11-26 03:11:30 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-11-26 03:11:57 +0300 |
commit | 6bce206ee9b3eaeb1e65c2e48b05fce37a3584b1 (patch) | |
tree | 63706df793c079ac34b8d6a29bb4654687ef408a /src | |
parent | a7f4bea0fcee235d2e9e3fdc0ffcaeb0a18c514d (diff) |
Delay restoreGeometry to after windowflags are set
Diffstat (limited to 'src')
-rw-r--r-- | src/mumble/MainWindow.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mumble/MainWindow.cpp b/src/mumble/MainWindow.cpp index e053027e4..62835274c 100644 --- a/src/mumble/MainWindow.cpp +++ b/src/mumble/MainWindow.cpp @@ -279,6 +279,12 @@ void MainWindow::setupGui() { qleChat->setDefaultText(tr("Not connected")); qleChat->setEnabled(false); + connect(qtvUsers->selectionModel(), + SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)), + SLOT(qtvUserCurrentChanged(const QModelIndex &, const QModelIndex &))); + + setupView(false); + if (g.s.bMinimalView && ! g.s.qbaMinimalViewGeometry.isNull()) restoreGeometry(g.s.qbaMinimalViewGeometry); else if (! g.s.bMinimalView && ! g.s.qbaMainWindowGeometry.isNull()) @@ -287,12 +293,6 @@ void MainWindow::setupGui() { restoreState(g.s.qbaMainWindowState); qtvUsers->header()->restoreState(g.s.qbaHeaderState); - connect(qtvUsers->selectionModel(), - SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)), - SLOT(qtvUserCurrentChanged(const QModelIndex &, const QModelIndex &))); - - setupView(false); - qmTray = new QMenu(this); setupIconMenu(false); qstiIcon->setContextMenu(qmTray); @@ -593,7 +593,7 @@ void MainWindow::setupView(bool toggle_minimize) { f |= Qt::WindowStaysOnTopHint; setWindowFlags(f); - + qdwLog->setVisible(showit); qdwChat->setVisible(showit && g.s.bShowChatbar); qtvUsers->header()->setVisible(showit); |