Skip to content

Commit

Permalink
Reset client version info on cliendswitcher disable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jul 27, 2020
1 parent 749a00d commit a539a4c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions generic/clientswitcherplugin/clientswitcherplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,22 @@ bool ClientSwitcherPlugin::enable()

bool ClientSwitcherPlugin::disable()
{
if (!enabled)
return true;

while (settingsList.size() != 0) {
AccountSettings *as = settingsList.takeLast();
if (as)
delete as;
}

for (int i = 0;; i++) {
QString id = psiAccount->getId(i);
if (id == "-1")
break;
psiAccountCtl->setClientVersionInfo(i, {});
}

enabled = false;
return true;
}
Expand Down

0 comments on commit a539a4c

Please sign in to comment.