Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

disable plugins when no exist a draw window

  • Loading branch information...
commit 39233f11e47eb3f26b237ffd13638f5ddd4266fd 1 parent 4afcaee
@Rallaz Rallaz authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  librecad.dox
  2. +1 −0  librecad/src/main/qc_applicationwindow.cpp
View
2  librecad.dox
@@ -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
View
1  librecad/src/main/qc_applicationwindow.cpp
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.