From a5f828f0dbd24e500ced976f36f77d766bfa0485 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sat, 2 Apr 2016 01:48:56 +0200 Subject: [PATCH] small follow up of refs #633, display correspondig DB in window title (makes it eas to see what DB is used) --- src/swiftdata/swiftdata.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/swiftdata/swiftdata.cpp b/src/swiftdata/swiftdata.cpp index 58486c5b8..dd3fb2f3c 100644 --- a/src/swiftdata/swiftdata.cpp +++ b/src/swiftdata/swiftdata.cpp @@ -26,6 +26,7 @@ using namespace BlackMisc; using namespace BlackMisc::Network; using namespace BlackCore; +using namespace BlackCore::Data; using namespace BlackGui; using namespace BlackGui::Components; @@ -80,6 +81,16 @@ void CSwiftData::init() this->initStyleSheet(); connect(sGui, &CGuiApplication::styleSheetsChanged, this, &CSwiftData::ps_onStyleSheetsChanged); this->initMenu(); + + // update title + const CGlobalSetup s(sApp->getGlobalSetup()); + if (!s.getDbHomePageUrl().isEmpty()) + { + QString t(this->windowTitle()); + t += " "; + t += s.getDbHomePageUrl().toQString(true); + this->setWindowTitle(t); + } } void CSwiftData::initLogDisplay()