diff options
-rw-r--r-- | ui/qt/main_window.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 940a63c5c5..7d8ad30883 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -1861,11 +1861,8 @@ void MainWindow::setTitlebarForCaptureFile() // name? // // XXX - Use setWindowModified - gchar *window_name; setWindowFilePath(NULL); - window_name = g_strdup_printf("[*]%s", cf_get_tempfile_source(capture_file_.capFile())); //TODO : Fix Translate - setWindowTitle(window_name); - g_free(window_name); + setWindowTitle(QString("[*]%1").arg(cf_get_tempfile_source(capture_file_.capFile()))); } else { // // For a user file, set the full path; that way, @@ -1907,13 +1904,9 @@ void MainWindow::setDefaultWindowTitle() void MainWindow::setTitlebarForCaptureInProgress() { - gchar *window_name; - setWindowFilePath(NULL); if (capture_file_.capFile()) { - window_name = g_strdup_printf("Capturing from %s", cf_get_tempfile_source(capture_file_.capFile())); //TODO : Fix Translate - setWindowTitle(window_name); - g_free(window_name); + setWindowTitle(tr("Capturing from %1").arg(cf_get_tempfile_source(capture_file_.capFile()))); } else { /* We have no capture in progress. */ setDefaultWindowTitle(); |