mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Only trigger the last maploaded
This commit is contained in:
parent
10e1b5c4fb
commit
74796e3e41
@ -77,9 +77,11 @@ App::~App()
|
||||
|
||||
int App::run()
|
||||
{
|
||||
MapAction *lastReady = 0;
|
||||
QStringList args(arguments());
|
||||
|
||||
_gui->show();
|
||||
|
||||
QStringList args(arguments());
|
||||
for (int i = 1; i < args.count(); i++) {
|
||||
if (!_gui->openFile(args.at(i), true)) {
|
||||
MapAction *a;
|
||||
@ -87,11 +89,14 @@ int App::run()
|
||||
_gui->openFile(args.at(i), false);
|
||||
else {
|
||||
if (a)
|
||||
a->trigger();
|
||||
lastReady = a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (lastReady)
|
||||
lastReady->trigger();
|
||||
|
||||
return exec();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user