From 8d1d365bf7ae973e2e2098cc909e325246eb0e0c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 17 Jun 2019 20:37:07 +0200 Subject: [PATCH] GUI: mux: reset tab name when destination file name is cleared Only the Windows version was affected. Fixes #2571. --- NEWS.md | 2 ++ src/mkvtoolnix-gui/merge/output.cpp | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/NEWS.md b/NEWS.md index c6d721856..04881a5f1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -10,6 +10,8 @@ * mkvmerge: the "codec name" track property wasn't copied from Matroska files. Fixes #2566. +* MKVToolNix GUI: multiplexer: Windows: clearing the destination file name + will reset the tab name to "" again. Fixes #2571. # Version 34.0.0 "Sight and Seen" 2019-05-18 diff --git a/src/mkvtoolnix-gui/merge/output.cpp b/src/mkvtoolnix-gui/merge/output.cpp index f0488ce06..1b4e825cc 100644 --- a/src/mkvtoolnix-gui/merge/output.cpp +++ b/src/mkvtoolnix-gui/merge/output.cpp @@ -342,6 +342,12 @@ Tab::onTitleChanged(QString newValue) { void Tab::setDestination(QString const &newValue) { + if (newValue.isEmpty()) { + m_config.m_destination.clear(); + emit titleChanged(); + return; + } + #if defined(SYS_WINDOWS) if (!newValue.contains(QRegularExpression{Q("^[a-zA-Z]:[\\\\/]|^\\\\\\\\.+\\.+")})) return;