We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4c7ba2 commit 88d1d3bCopy full SHA for 88d1d3b
src/main.cpp
@@ -74,7 +74,9 @@ int main(int argc, char* argv[])
74
// Read from stdin
75
w.open(std::cin);
76
} else {
77
- w.open(argv[1]);
+ for (int i = 1; i < argc; i++) {
78
+ w.open(argv[i]);
79
+ }
80
}
81
82
src/view/mainwindow.cpp
@@ -147,9 +147,9 @@ void MainWindow::dropEvent(QDropEvent* ev)
147
{
148
QList<QUrl> urls = ev->mimeData()->urls();
149
150
- if (!urls.empty()) {
151
- QString filename = urls[0].toString();
152
- QString startFileTypeString =
+ for (const QUrl& url: urls) {
+ QString filename = url.toString();
+ const QString startFileTypeString =
153
#ifdef _WIN32
154
"file:///";
155
#else
0 commit comments