UI: Use non-native file dialog w/ Linux

This commit is contained in:
Clayton Groeneveld
2020-07-18 09:49:24 -07:00
committed by jp9000
parent 934cff582a
commit 762983b5d8
11 changed files with 134 additions and 64 deletions
+4 -5
View File
@@ -21,7 +21,6 @@
#include <QCloseEvent>
#include <QDirIterator>
#include <QFileDialog>
#include <QItemDelegate>
#include <QLineEdit>
#include <QMessageBox>
@@ -216,9 +215,9 @@ void RemuxEntryPathItemDelegate::handleBrowse(QWidget *container)
bool isSet = false;
if (isOutput) {
QString newPath = QFileDialog::getSaveFileName(
container, QTStr("Remux.SelectTarget"), currentPath,
OutputPattern);
QString newPath = SaveFile(container,
QTStr("Remux.SelectTarget"),
currentPath, OutputPattern);
if (!newPath.isEmpty()) {
container->setProperty(PATH_LIST_PROP,
@@ -226,7 +225,7 @@ void RemuxEntryPathItemDelegate::handleBrowse(QWidget *container)
isSet = true;
}
} else {
QStringList paths = QFileDialog::getOpenFileNames(
QStringList paths = OpenFiles(
container, QTStr("Remux.SelectRecording"), currentPath,
QTStr("Remux.OBSRecording") + QString(" ") +
InputPattern);