Skip to content

Commit

Permalink
fix: keep filename/path when converting monitors (fix #3118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Apr 1, 2024
1 parent a9b8d44 commit e9b84dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gui/src/tabs/monitors-tab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit e9b84dd

Please # to comment.