9c21a14
diff --git a/Source/GUI/Qt/main.cpp b/Source/GUI/Qt/main.cpp
9c21a14
index 922eb7e..6b5ef35 100755
9c21a14
--- a/Source/GUI/Qt/main.cpp
9c21a14
+++ b/Source/GUI/Qt/main.cpp
9c21a14
@@ -28,6 +28,8 @@ int main(int argc, char *argv[])
9c21a14
 {
9c21a14
     QApplication a(argc, argv);
9c21a14
     QStringList args = QCoreApplication::arguments();
9c21a14
+    // # First argument is always app name, not an really argument
9c21a14
+    args.removeFirst();
9c21a14
     bool no_gui=false;
9c21a14
     QStringList filesnames;
9c21a14
     int output=-1;
9c21a14
diff --git a/Source/GUI/Qt/mainwindow.cpp b/Source/GUI/Qt/mainwindow.cpp
9c21a14
index 7afbee8..fb2641f 100755
9c21a14
--- a/Source/GUI/Qt/mainwindow.cpp
9c21a14
+++ b/Source/GUI/Qt/mainwindow.cpp
9c21a14
@@ -103,7 +103,7 @@ MainWindow::MainWindow(QStringList filesnames, int viewasked, QWidget *parent) :
9c21a14
 
9c21a14
     refreshDisplay();
9c21a14
 
9c21a14
-    if(filesnames.count()>1) {
9c21a14
+    if(filesnames.count()>0) {
9c21a14
         openFiles(filesnames);
9c21a14
     }