diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-06-15 09:25:12 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-06-15 23:53:27 +0000 |
commit | 60ab49592b58075d54db68353c60c8cfb2409b31 (patch) | |
tree | f7900c1bbd100aab0a8b9ef099797384fb756a23 /ui | |
parent | 34124c857ec50d428bf6c14fc4f24add735c5441 (diff) |
Accept drop events immediately.
Accept drop events before opening our capture file instead after.
Change-Id: I48fe1cd1e3b5e6f7b076aaa0e3a0d035938a5af7
Reviewed-on: https://code.wireshark.org/review/8929
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/main_window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index b535dc40ef..086d8a5a4e 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -607,8 +607,8 @@ void MainWindow::dropEvent(QDropEvent *event) foreach (QUrl drop_url, event->mimeData()->urls()) { QString local_file = drop_url.toLocalFile(); if (!local_file.isEmpty()) { - openCaptureFile(local_file); event->acceptProposedAction(); + openCaptureFile(local_file); break; } } |