Fix 3 compiler warnings

This commit is contained in:
ngosang 2015-08-01 22:04:51 +02:00
parent e3cb9de365
commit fbb47ce08f
3 changed files with 1 additions and 8 deletions

View file

@ -163,9 +163,9 @@ void Application::torrentFinished(BitTorrent::TorrentHandle *const torrent)
void Application::allTorrentsFinished()
{
#ifndef DISABLE_GUI
Preferences *const pref = Preferences::instance();
#ifndef DISABLE_GUI
bool will_shutdown = (pref->shutdownWhenDownloadsComplete()
|| pref->shutdownqBTWhenDownloadsComplete()
|| pref->suspendWhenDownloadsComplete()