mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
Add option to open files from the commandline.
This commit is contained in:
@@ -6,5 +6,8 @@ int main(int argc, char *argv[])
|
||||
QApplication a(argc, argv);
|
||||
MainWindow w;
|
||||
w.show();
|
||||
for (int i=1; i<argc; ++i) {
|
||||
w.openFile(argv[i]);
|
||||
}
|
||||
return a.exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user