mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
refs #485, further removed global setup traits from classes with read only
Use global setup from sGui/sApp
This commit is contained in:
committed by
Mathew Sutcliffe
parent
30b5e5dade
commit
aa96731143
@@ -134,7 +134,7 @@ void CSwiftLauncher::initStyleSheet()
|
||||
void CSwiftLauncher::displayLatestNews()
|
||||
{
|
||||
#ifndef Q_CC_MINGW
|
||||
CFailoverUrlList newsUrls(this->m_setup.get().swiftLatestNewsUrls());
|
||||
CFailoverUrlList newsUrls(sGui->getGlobalSetup().swiftLatestNewsUrls());
|
||||
QUrl newUrl(newsUrls.obtainNextWorkingUrl());
|
||||
|
||||
Q_UNUSED(newUrl);
|
||||
@@ -343,7 +343,7 @@ void CSwiftLauncher::ps_startButtonPressed()
|
||||
}
|
||||
else if (sender == this->ui->tb_Database)
|
||||
{
|
||||
CUrl homePage(this->m_setup.get().dbHomePageUrl());
|
||||
const CUrl homePage(sApp->getGlobalSetup().dbHomePageUrl());
|
||||
QDesktopServices::openUrl(homePage);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,6 @@ protected:
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CSwiftLauncher> ui;
|
||||
BlackMisc::CData<BlackCore::Data::GlobalSetup> m_setup { this, &CSwiftLauncher::ps_changedCache }; //!< setup cache
|
||||
BlackMisc::CData<BlackCore::Data::UpdateInfo> m_updateInfo { this, &CSwiftLauncher::ps_changedCache }; //!< version cache
|
||||
QString m_executable;
|
||||
QStringList m_executableArgs;
|
||||
|
||||
Reference in New Issue
Block a user