comparison src/main.cpp @ 9:e3c8f61e45a9

Implement folderselection dialogs
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 26 Mar 2015 16:30:18 +0100
parents 147b08bc7d64
children 64a51a42c01f
comparison
equal deleted inserted replaced
8:ac4db84f1d9d 9:e3c8f61e45a9
159 159
160 /* Initialize the main window */ 160 /* Initialize the main window */
161 MainWindow mainWin; 161 MainWindow mainWin;
162 162
163 const QStringList args = parser.positionalArguments(); 163 const QStringList args = parser.positionalArguments();
164 if (args.isEmpty() || args.size() > 1) { 164 if (args.size() > 1) {
165 parser.showHelp(1); 165 parser.showHelp(1);
166 } 166 }
167 mainWin.setFolder(args.first()); 167 if (args.size() == 1) {
168 168 mainWin.setFolder(args.first());
169 mainWin.show(); 169 } else {
170 mainWin.showWithFolderSelect();
171 }
170 172
171 return app.exec(); /* Go event loop */ 173 return app.exec(); /* Go event loop */
172 } 174 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)