Commit 22040dd2 authored by Jean-Loup Haberbusch's avatar Jean-Loup Haberbusch

ADD Case without any plugin loaded to open data directory is taking into account

When no plugin are available to open a directory, a message is displayed instead of the normal menu
parent 5304d077
......@@ -626,6 +626,11 @@ void ImpMainWindow::openDataDirectoryMenuBuilder(QMenu * fm) {
fm->addAction(openDirectoryAct);
openDirectoryAct->setIcon(QPixmap(":/fileOpen"));
} else {
fileOpenDataDirectoryMenu = new QMenu("No plugins loaded to Open Data Directory");
fileOpenDataDirectoryMenu->setIcon(QPixmap(":/fileOpen"));
fileOpenDataDirectoryMenu->setEnabled(false);
fm->addMenu(fileOpenDataDirectoryMenu);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment