mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
small simplification.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14260 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
36b150e5dc
commit
edf54496ad
2 changed files with 7 additions and 8 deletions
|
|
@ -25,12 +25,12 @@
|
|||
int main( int argc, char ** argv ) {
|
||||
QApplication app( argc, argv );
|
||||
|
||||
QString absolutePath = QFileInfo(qApp->arguments().at(0)).absolutePath() + "/";
|
||||
QString absolutePath = qApp->applicationDirPath();
|
||||
// portable installation:
|
||||
// check for a configuration file in the program folder.
|
||||
QSettings *user;
|
||||
if(QFileInfo(absolutePath + "RockboxUtility.ini").isFile())
|
||||
user = new QSettings(absolutePath + "RockboxUtility.ini", QSettings::IniFormat, 0);
|
||||
if(QFileInfo(absolutePath + "/RockboxUtility.ini").isFile())
|
||||
user = new QSettings(absolutePath + "/RockboxUtility.ini", QSettings::IniFormat, 0);
|
||||
else user = new QSettings(QSettings::IniFormat, QSettings::UserScope, "rockbox.org", "RockboxUtility");
|
||||
|
||||
QTranslator translator;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue