diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2016-05-23 22:57:54 +0200 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2016-05-23 21:04:03 +0000 |
commit | 6d9022d19f92ae0250300746c52a7f47478c93bb (patch) | |
tree | 597226937423c2574b8e41930781e6a91b43f463 /ui | |
parent | fa2ca46f288ca7b43cd1cb2d006d266df2f8c70e (diff) | |
download | wireshark-6d9022d19f92ae0250300746c52a7f47478c93bb.tar.gz |
qt follow stream: set the file name before opening
If we don't, Save As will always fail.
(I broke this in 6a992182ce47d721ce73eabf99983cea480dcf97)
Change-Id: I4abfe495af3aee470331ae5464acbd7d08028bf0
Reviewed-on: https://code.wireshark.org/review/15547
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/follow_stream_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp index 29ec2b83fb..2cbd62575c 100644 --- a/ui/qt/follow_stream_dialog.cpp +++ b/ui/qt/follow_stream_dialog.cpp @@ -268,11 +268,11 @@ void FollowStreamDialog::saveAs() if (!file_name.isEmpty()) { QTextStream out(&file_); + file_.setFileName(file_name); if (!file_.open(QIODevice::WriteOnly)) { open_failure_alert_box(file_name.toUtf8().constData(), errno, TRUE); return; } - file_.setFileName(file_name); save_as_ = true; |