diff --git a/src/app/mainapplication.cpp b/src/app/mainapplication.cpp index 5ec431e30..692d5d82a 100644 --- a/src/app/mainapplication.cpp +++ b/src/app/mainapplication.cpp @@ -499,7 +499,7 @@ bool MainApplication::event(QEvent* e) { switch (e->type()) { case QEvent::FileOpen: { - QString fileName = static_cast(event)->file(); + QString fileName = static_cast(e)->file(); addNewTab(QUrl::fromLocalFile(fileName)); return true; }