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:
parent
056562d782
commit
caa3a35510
@ -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 );
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user