diff options
author | Pascal Quantin <pascal@wireshark.org> | 2020-12-11 11:24:23 +0000 |
---|---|---|
committer | Pascal Quantin <pascal@wireshark.org> | 2020-12-12 08:25:57 +0000 |
commit | 81bcbf0ed6b9817e60139f096b243f275cd2e092 (patch) | |
tree | 06d7c93fa82d76270c1a06b9472786e39451405f /ui | |
parent | 18ada2123226017970c7532836516492b95eafd5 (diff) |
Qt: create endpoint IP map in temp folder
Closes #17074
(cherry picked from commit 9fb03566c25e74fafb796bf9888d393238423cc0)
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/endpoint_dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/endpoint_dialog.cpp b/ui/qt/endpoint_dialog.cpp index 1fae3477ae..a452f7e4b4 100644 --- a/ui/qt/endpoint_dialog.cpp +++ b/ui/qt/endpoint_dialog.cpp @@ -200,7 +200,8 @@ QUrl EndpointDialog::createMap(bool json_only) g_ptr_array_add(hosts_arr, NULL); hostlist_talker_t **hosts = (hostlist_talker_t **)g_ptr_array_free(hosts_arr, FALSE); - QTemporaryFile tf("ipmapXXXXXX.html"); + QString tempname = QString("%1/ipmapXXXXXX.html").arg(QDir::tempPath()); + QTemporaryFile tf(tempname); if (!tf.open()) { QMessageBox::warning(this, tr("Map file error"), tr("Unable to create temporary file")); g_free(hosts); |