mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Pass the mainWindow as parent for the fileOpenDialog.
This commit is contained in:
parent
f07b074ab6
commit
6ee087c876
@ -20,6 +20,7 @@ public:
|
||||
KiwixSchemeHandler* getSchemeHandler() { return &schemeHandler; }
|
||||
KiwixRequestInterceptor* getRequestInterceptor() { return &requestIntercetor; }
|
||||
Library* getLibrary() { return &library; }
|
||||
MainWindow* getMainWindow() { return mainWindow; }
|
||||
private:
|
||||
Library library;
|
||||
MainWindow* mainWindow;
|
||||
|
2
main.cpp
2
main.cpp
@ -16,7 +16,7 @@ int main(int argc, char *argv[])
|
||||
QString zimfile;
|
||||
auto positionalArguments = parser.positionalArguments();
|
||||
if (positionalArguments.size() < 1){
|
||||
zimfile = QFileDialog::getOpenFileName(nullptr,
|
||||
zimfile = QFileDialog::getOpenFileName(a.getMainWindow(),
|
||||
"Open Zim",
|
||||
QString(),
|
||||
"ZimFile (*.zim*)");
|
||||
|
Loading…
x
Reference in New Issue
Block a user