libobs: Add file saving to file property

(This commit also modifies the UI)

Closes jp9000/obs-studio#502
This commit is contained in:
partouf
2016-01-31 18:37:16 +01:00
committed by jp9000
parent 4b4ddbb33e
commit d75ed15037
2 changed files with 5 additions and 0 deletions

View File

@@ -1496,6 +1496,10 @@ bool WidgetInfo::PathChanged(const char *setting)
path = QFileDialog::getOpenFileName(view,
QT_UTF8(desc), QT_UTF8(default_path),
QT_UTF8(filter));
else if (type == OBS_PATH_FILE_SAVE)
path = QFileDialog::getSaveFileName(view,
QT_UTF8(desc), QT_UTF8(default_path),
QT_UTF8(filter));
if (path.isEmpty())
return false;