From 086181cd8f48c6a358da79bcce622774b2221286 Mon Sep 17 00:00:00 2001 From: ruglory Date: Fri, 24 Apr 2009 00:31:23 +0000 Subject: [PATCH] Bugfix for labels opened from commandline not updating menu git-svn-id: https://svn.code.sf.net/p/qlscribe/svn/trunk@149 cac9541e-1b8d-4bfa-827e-589bba606050 --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a34f01a..6921233 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -199,6 +199,8 @@ void MainWindow::open( const QStringList &files ) delete newView; continue; } + connect( scene, SIGNAL(selectionChanged()), this, SLOT(updateMenu()) ); + connect( scene, SIGNAL(changed()), this, SLOT(updateMenu()) ); QMdiSubWindow *subWindow = m_mdiArea->addSubWindow( newView ); subWindow->show();