diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index f8c9c7d..a0ec78f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,12 +26,12 @@ int main(int argc, char *argv[]) if(parser.positionalArguments().length() > 0) {
QUrl url = QUrl::fromUserInput(parser.positionalArguments().at(0));
if(url.isValid()) {
- instance.addWindow(new MainWindow(url));
+ instance.addWindow(new MainWindow(&instance, url));
} else {
- instance.addWindow(new MainWindow());
+ instance.addWindow(new MainWindow(&instance));
}
} else {
- instance.addWindow(new MainWindow());
+ instance.addWindow(new MainWindow(&instance));
}
return app.exec();
|