From 4c7efd97af6ca1028279d40ebe674dc88bdaafc4 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sat, 29 Jul 2017 01:19:46 +0200 Subject: Cleanup file dialog filters and remove Monitor from app title --- src/gui_qt.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui_qt.cc') diff --git a/src/gui_qt.cc b/src/gui_qt.cc index 9ffdfc9..c47d8fc 100644 --- a/src/gui_qt.cc +++ b/src/gui_qt.cc @@ -370,6 +370,7 @@ QString show_file_dialog(QWidget* parent, std::string const& title, for (auto const& f : filters) { if (!filter.isEmpty()) filter.append(";;"); filter.append(QString::fromStdString(f.name)); + if (!f.name.empty() && f.name.back() == ')') continue; filter.append(" ("); bool first = true; for (auto const& mask : f.masks) { -- cgit v1.2.3-70-g09d2