Qt: create endpoint IP map in temp folder

Closes #17074


(cherry picked from commit 9fb03566c2)
This commit is contained in:
Pascal Quantin 2020-12-11 11:24:23 +00:00
parent 18ada21232
commit 81bcbf0ed6
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);