1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 04:51:53 +02:00
This commit is contained in:
Leo Franchi 2012-03-25 09:58:09 -04:00
parent 4dabbdf247
commit 1bd7d37a0a
3 changed files with 11 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/python
# This file is part of Clementine.
# This file is part of Tomahawk.
# It was inspired in large part by the macdeploy script in Clementine.
#
# Clementine is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

View File

@ -63,8 +63,14 @@ ScriptResolver::~ScriptResolver()
{
disconnect( &m_proc, SIGNAL( finished( int, QProcess::ExitStatus ) ), this, SLOT( cmdExited( int, QProcess::ExitStatus ) ) );
m_proc.kill();
m_proc.waitForFinished();
QVariantMap msg;
msg[ "_msgtype" ] = "quit";
sendMessage( msg );
// QEventLoop::processEvents(QEventLoop::ExcludeUserInputEvents);
// m_proc.terminate();
m_proc.waitForFinished( 1000 );
Tomahawk::Pipeline::instance()->removeResolver( this );

View File

@ -124,7 +124,7 @@ main( int argc, char *argv[] )
#endif
#ifndef ENABLE_HEADLESS
new BreakPad( QDir::tempPath(), TomahawkSettings::instance()->crashReporterEnabled() );
// new BreakPad( QDir::tempPath(), TomahawkSettings::instance()->crashReporterEnabled() );
#endif
KDSingleApplicationGuard guard( &a, KDSingleApplicationGuard::AutoKillOtherInstances );