Ref T362, Ref T348 "removed models" context menu

This commit is contained in:
Klaus Basan
2018-09-21 17:32:43 +02:00
parent 8a5112e48d
commit 3037afabf2
3 changed files with 62 additions and 5 deletions

View File

@@ -437,9 +437,9 @@ namespace BlackGui
CMenuAction CMenuActions::addMenuStash()
{
if (this->containsMenu(CMenuAction::pathModelStash())) { return CMenuAction(); }
const bool canConnectDb = sGui->getWebDataServices()->hasSuccesfullyConnectedSwiftDb();
const QString txt(canConnectDb ? "Stash tools" : "Stash tools (Warning: no DB!)");
return this->addMenu(CIcons::appDbStash16(), txt, CMenuAction::pathModelStash());
const bool canConnectDb = sGui && sGui->getWebDataServices() && sGui->getWebDataServices()->hasSuccesfullyConnectedSwiftDb();
const QString text(canConnectDb ? "Stash tools" : "Stash tools (Warning: no DB!)");
return this->addMenu(CIcons::appDbStash16(), text, CMenuAction::pathModelStash());
}
CMenuAction CMenuActions::addMenuStashEditor()