mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +02:00
Correctly extract.
This commit is contained in:
@@ -491,6 +491,7 @@ SettingsDialog::installFromFile()
|
|||||||
|
|
||||||
Account* acct = AccountManager::instance()->accountFromPath( resolver );
|
Account* acct = AccountManager::instance()->accountFromPath( resolver );
|
||||||
|
|
||||||
|
Q_ASSERT( acct );
|
||||||
AccountManager::instance()->addAccount( acct );
|
AccountManager::instance()->addAccount( acct );
|
||||||
TomahawkSettings::instance()->addAccount( acct->accountId() );
|
TomahawkSettings::instance()->addAccount( acct->accountId() );
|
||||||
AccountManager::instance()->enableAccount( acct );
|
AccountManager::instance()->enableAccount( acct );
|
||||||
|
@@ -78,7 +78,7 @@ ResolverAccountFactory::createFromPath( const QString& path, const QString& fact
|
|||||||
if ( pathInfo.suffix() == "axe" )
|
if ( pathInfo.suffix() == "axe" )
|
||||||
{
|
{
|
||||||
QDir dir( TomahawkUtils::extractScriptPayload( pathInfo.filePath(),
|
QDir dir( TomahawkUtils::extractScriptPayload( pathInfo.filePath(),
|
||||||
pathInfo.baseName(),
|
pathInfo.completeBaseName(),
|
||||||
"manualresolvers" ) );
|
"manualresolvers" ) );
|
||||||
if ( !( dir.exists() && dir.isReadable() ) ) //decompression fubar
|
if ( !( dir.exists() && dir.isReadable() ) ) //decompression fubar
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user