1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 04:19:55 +01:00

Only check subversion info if $BUILDBOT_REVISION not set.

Fix compile warning.
This commit is contained in:
John Maguire 2010-11-25 17:14:11 +00:00
parent 8ac4e57cdf
commit b2ffc58070
2 changed files with 8 additions and 9 deletions

View File

@ -7,13 +7,14 @@ set(CLEMENTINE_VERSION_PATCH 3)
include(FindSubversion)
find_package(Subversion)
if(SUBVERSION_FOUND)
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} clementine)
set(BUILDBOT_REVISION ${clementine_WC_REVISION})
else(SUBVERSION_FOUND)
set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
endif(SUBVERSION_FOUND)
set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
if(NOT BUILDBOT_REVISION)
find_package(Subversion)
if(SUBVERSION_FOUND)
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} clementine)
set(BUILDBOT_REVISION ${clementine_WC_REVISION})
endif(SUBVERSION_FOUND)
endif(NOT BUILDBOT_REVISION)
if(BUILDBOT_REVISION)
set(CLEMENTINE_VERSION_STRING "${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR} r${BUILDBOT_REVISION}") # Displayed in GUIs

View File

@ -280,8 +280,6 @@ Song JamendoService::ReadTrack(const QString& artist,
}
void JamendoService::ParseDirectoryFinished() {
QFutureWatcher<void>* watcher = static_cast<QFutureWatcher<void>*>(sender());
model()->task_manager()->SetTaskFinished(load_database_task_id_);
load_database_task_id_ = 0;
}