Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-02-26 23:04:53 +0000
committerStijn Buys <ingar@osirion.org>2012-02-26 23:04:53 +0000
commit802fe3321306a81e227584e34087b477110ffdb5 (patch)
tree3f1c93bd6cd1a0293500f24f4aee42ba74c9c9da /src/mainwindow.cc
parent06324807359ab34bf1742049ea8b7794d3be126e (diff)
Select newly created entities,
remember entity type updates, rearranged sidebar widget construction code.
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 414c07b..0a39b0a 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -33,6 +33,7 @@ MainWindow::MainWindow()
// initialize menu bar
initMenus();
+ updateMenus();
}
@@ -137,8 +138,6 @@ EditorWindow *MainWindow::add_child()
//subwindow->resize(768, 512);
child_widget->show();
- // FIXME check if maximized
-
return child_widget;
}
@@ -156,8 +155,6 @@ void MainWindow::slot_open()
QMdiSubWindow *subwindow = find_child(filename);
if (subwindow) {
- subwindow->raise();
- subwindow->activateWindow();
mainwindow_mdiarea->setActiveSubWindow(subwindow);
} else {
EditorWindow *editorwindow = add_child();