forked from osmocom/wireshark
Qt: create endpoint IP map in temp folder
Closes #17074
(cherry picked from commit 9fb03566c2
)
This commit is contained in:
parent
18ada21232
commit
81bcbf0ed6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue