Skip to content

Commit

Permalink
Don't mangle path to custom icons
Browse files Browse the repository at this point in the history
I have quite a few custom icons stored in locations outside
AQEMU_Data_Folder
  • Loading branch information
kpengboy committed Dec 22, 2017
1 parent 7033e8f commit c131101
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/VM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3600,21 +3600,14 @@ bool Virtual_Machine::Load_VM( const QString &file_name )
<< "/usr/local/share/aqemu/";

QSettings settings;
bool abs_found = false;
for ( int i = 0; i < dataDirs.count(); i++ )
{
if ( Icon_Path.startsWith(dataDirs.at(i)) )
{
Icon_Path.replace(dataDirs.at(i),settings.value( "AQEMU_Data_Folder","").toString());
abs_found = true;
break;
}
}

if ( ! abs_found )
{
Icon_Path = settings.value( "AQEMU_Data_Folder","").toString() + Icon_Path;
}
}

// Screenshot Path
Expand Down

0 comments on commit c131101

Please sign in to comment.