From 802fe3321306a81e227584e34087b477110ffdb5 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 26 Feb 2012 23:04:53 +0000 Subject: Select newly created entities, remember entity type updates, rearranged sidebar widget construction code. --- src/mainwindow.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mainwindow.cc') 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(); -- cgit v1.2.3