void AniPlayerApplication::handleMessage(const QString &message)
{
- if (message.left(4) != "open")
- return;
+ if (message.left(4) != "open")
+ return;
- QString file;
+ QString file;
- int pos = -1;
- if ((pos = message.indexOf(' ')) != -1)
- file = message.mid(pos + 1);
+ int pos = -1;
+ if ((pos = message.indexOf(' ')) != -1)
+ file = message.mid(pos + 1);
- if (!file.isEmpty())
- emit openFileRequested(file);
+ if (file.isEmpty())
+ return;
+
+ emit openFileRequested(file);
+ activateWindow();
}
const char * const AniPlayerApplication::revision()