summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index b63ea3929..341819a96 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -563,10 +563,7 @@ QLocale getLocale()
void set_filename(const char *filename)
{
free((void *)existing_filename);
- if (filename)
- existing_filename = strdup(filename);
- else
- existing_filename = NULL;
+ existing_filename = copy_string(filename);
}
const QString get_dc_nickname(const char *model, uint32_t deviceid)