From e9b84dd05e0c9ffb2c0b520f53ed178c36cf2c6d Mon Sep 17 00:00:00 2001 From: Bionus Date: Mon, 1 Apr 2024 13:02:58 +0200 Subject: [PATCH] fix: keep filename/path when converting monitors (fix #3118) --- src/gui/src/tabs/monitors-tab.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gui/src/tabs/monitors-tab.cpp b/src/gui/src/tabs/monitors-tab.cpp index f1ccf6a2f..ba6904be5 100644 --- a/src/gui/src/tabs/monitors-tab.cpp +++ b/src/gui/src/tabs/monitors-tab.cpp @@ -122,7 +122,15 @@ void MonitorsTab::convertSelected() for (const int row : rows) { const Monitor &monitor = m_monitorManager->monitors()[row]; for (Site *site : monitor.sites()) { - emit batchAddGroup(DownloadQueryGroup(m_settings, monitor.query(), 1, 200, -1, monitor.postFilters(), site)); + QString path = monitor.pathOverride(); + if (path.isEmpty()) { + path = m_settings->value("save/path").toString(); + } + QString filename = monitor.filenameOverride(); + if (filename.isEmpty()) { + filename = m_settings->value("save/filename").toString(); + } + emit batchAddGroup(DownloadQueryGroup(monitor.query(), 1, 200, -1, monitor.postFilters(), monitor.getBlacklisted(), site, filename, path)); } } }