Permalink
Browse files

disable plugins when no exist a draw window

  • Loading branch information...
1 parent 4afcaee commit 39233f11e47eb3f26b237ffd13638f5ddd4266fd @Rallaz Rallaz committed Nov 29, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 librecad.dox
  2. +1 −0 librecad/src/main/qc_applicationwindow.cpp
View
@@ -581,7 +581,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
-INPUT =
+INPUT = librecad
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
@@ -261,6 +261,7 @@ void QC_ApplicationWindow::loadPlugins() {
QAction *actpl = new QAction(loc.menuEntryActionName, plugin);
actpl->setData(loc.menuEntryActionName);
connect(actpl, SIGNAL(triggered()), this, SLOT(execPlug()));
+ connect(this, SIGNAL(windowsChanged(bool)), actpl, SLOT(setEnabled(bool)));
QMenu *atMenu = findMenu("/"+loc.menuEntryPoint, menuBar()->children(), "");
if (atMenu) {
atMenu->addAction(actpl);

0 comments on commit 39233f1

Please sign in to comment.