mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Drop file opens it, command line arguments
This commit is contained in:
@ -43,5 +43,11 @@ int main(int argc, char *argv[])
|
||||
pdfviewer::PDFViewerMainWindow mainWindow;
|
||||
mainWindow.show();
|
||||
|
||||
QStringList arguments = application.arguments();
|
||||
if (arguments.size() > 1)
|
||||
{
|
||||
mainWindow.openDocument(arguments[1]);
|
||||
}
|
||||
|
||||
return application.exec();
|
||||
}
|
||||
|
Reference in New Issue
Block a user