Fix a bug that makes Vk to be always displayed when trying to show any service's config.

Call stack: SettingsDialog::showEvent -> VkSettingsPage::Load -> VkService::ReloadSettings -> VkService::Logout -> VkService::UpdateRoot -> VkService::ShowConfig
Would probably be better to not call service in VkSettingsPage::Load and read QSettings only, but I don't think it's good either to call ShowConfig when user is being logged-out.
This commit is contained in:
Arnaud Bienner 2014-09-28 02:13:56 +02:00
parent f81fa2d119
commit 72cfa126ac
1 changed files with 0 additions and 2 deletions

View File

@ -546,8 +546,6 @@ void VkService::Logout() {
client_->disconnectFromHost();
connection_->clear();
}
UpdateRoot();
}
bool VkService::HasAccount() const { return connection_->hasAccount(); }