Qt: create endpoint IP map in temp folder

Closes #17074
This commit is contained in:
Pascal Quantin 2020-12-11 12:24:23 +01:00 committed by Guy Harris
parent 6e1142c33a
commit 9fb03566c2
1 changed files with 2 additions and 1 deletions

View File

@ -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);