Print the version number on startup

This commit is contained in:
David Sansome 2012-12-26 12:37:57 +11:00
parent e3c8caa613
commit d9ea96033a
1 changed files with 4 additions and 0 deletions

View File

@ -305,6 +305,10 @@ int main(int argc, char *argv[]) {
logging::SetLevels(options.log_levels());
g_log_set_default_handler(reinterpret_cast<GLogFunc>(&logging::GLog), NULL);
// Output the version, so when people attach log output to bug reports they
// don't have to tell us which version they're using.
qLog(Info) << "Clementine" << CLEMENTINE_VERSION_DISPLAY;
// Seed the random number generators.
time_t t = time(NULL);
srand(t);