1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 00:12:06 +02:00

Correctly extract.

This commit is contained in:
Teo Mrnjavac 2013-03-15 11:43:37 +01:00
parent 056562d782
commit caa3a35510
2 changed files with 2 additions and 1 deletions

View File

@ -491,6 +491,7 @@ SettingsDialog::installFromFile()
Account* acct = AccountManager::instance()->accountFromPath( resolver );
Q_ASSERT( acct );
AccountManager::instance()->addAccount( acct );
TomahawkSettings::instance()->addAccount( acct->accountId() );
AccountManager::instance()->enableAccount( acct );

View File

@ -78,7 +78,7 @@ ResolverAccountFactory::createFromPath( const QString& path, const QString& fact
if ( pathInfo.suffix() == "axe" )
{
QDir dir( TomahawkUtils::extractScriptPayload( pathInfo.filePath(),
pathInfo.baseName(),
pathInfo.completeBaseName(),
"manualresolvers" ) );
if ( !( dir.exists() && dir.isReadable() ) ) //decompression fubar
return 0;