diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-18 11:44:07 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-18 11:44:07 (GMT) |
| commit | 97a819c79c5d89eca3a3227c88efe6b2c9e99b77 (patch) | |
| tree | 8aa9772a5ef60afc12ee36192590e4d9da97acd2 /src/client/Client.cpp | |
| parent | 5b51e670447ea175fb9b0b7035403b274e16972e (diff) | |
| download | powder-97a819c79c5d89eca3a3227c88efe6b2c9e99b77.zip powder-97a819c79c5d89eca3a3227c88efe6b2c9e99b77.tar.gz | |
Fix autoupdate issue where temp file is not deleted, fixes #128
Diffstat (limited to 'src/client/Client.cpp')
| -rw-r--r-- | src/client/Client.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp index ea9c639..0f6273c 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -676,12 +676,8 @@ void Client::RemoveListener(ClientListener * listener) } } -void Client::Shutdown() +void Client::WritePrefs() { - ClearThumbnailRequests(); - http_done(); - - //Save config std::ofstream configFile; configFile.open("powder.pref", std::ios::trunc); if(configFile) @@ -708,6 +704,15 @@ void Client::Shutdown() } } +void Client::Shutdown() +{ + ClearThumbnailRequests(); + http_done(); + + //Save config + WritePrefs(); +} + Client::~Client() { } |
