Changeset 178


Ignore:
Timestamp:
May 4, 2016, 3:18:04 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: always add the app path to a executable search too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk/src/helper.cpp

    r176 r178  
    332332        if (!newName.endsWith(".exe", Qt::CaseInsensitive))
    333333                newName.append(".exe");
    334 #endif
     334        QStringList search_paths = QString::fromLocal8Bit(env.constData()).split(';', QString::SkipEmptyParts);
     335        search_paths += qApp->applicationDirPath();
     336#else
    335337        QStringList search_paths = QString::fromLocal8Bit(env.constData()).split(':', QString::SkipEmptyParts);
     338#endif
    336339        for (int n = 0; n < search_paths.count(); n++) {
    337340#ifdef Q_OS_OS2
Note: See TracChangeset for help on using the changeset viewer.