summaryrefslogtreecommitdiffstats
path: root/examples/gestures/imageviewer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gestures/imageviewer/main.cpp')
-rw-r--r--examples/gestures/imageviewer/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/gestures/imageviewer/main.cpp b/examples/gestures/imageviewer/main.cpp
index 6bda418..cd1928b 100644
--- a/examples/gestures/imageviewer/main.cpp
+++ b/examples/gestures/imageviewer/main.cpp
@@ -81,6 +81,9 @@ int main(int argc, char *argv[])
if (QApplication::arguments().size() > 1)
w.openDirectory(QApplication::arguments().at(1));
+ else
+ w.openDirectory(QFileDialog::getExistingDirectory(0, "Select image folder"));
+
return app.exec();
}