Ref T148, renamed/added hasConnectedSwiftDb / canConnectSwiftDb

This commit is contained in:
Klaus Basan
2017-09-04 15:32:25 +02:00
committed by Mathew Sutcliffe
parent a2e888546e
commit 961f47b700
5 changed files with 16 additions and 6 deletions

View File

@@ -428,7 +428,7 @@ namespace BlackGui
CMenuAction CMenuActions::addMenuStash()
{
if (this->containsMenu(CMenuAction::pathStash())) { return CMenuAction(); }
const bool canConnectDb = sGui->getWebDataServices()->canConnectSwiftDb();
const bool canConnectDb = sGui->getWebDataServices()->hasConnectedSwiftDb();
const QString txt(canConnectDb ? "Stash tools" : "Stash tools (Warning: no DB!)");
return this->addMenu(CIcons::appDbStash16(), txt, CMenuAction::pathStash());
}