mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
UI: Re-raise properties window after picking files on macOS
This commit is contained in:
parent
668775f4f0
commit
b5b293fe72
|
@ -1750,6 +1750,11 @@ bool WidgetInfo::PathChanged(const char *setting)
|
|||
path = SaveFile(view, QT_UTF8(desc), QT_UTF8(default_path),
|
||||
QT_UTF8(filter));
|
||||
|
||||
#ifdef __APPLE__
|
||||
// TODO: Revisit when QTBUG-42661 is fixed
|
||||
widget->window()->raise();
|
||||
#endif
|
||||
|
||||
if (path.isEmpty())
|
||||
return false;
|
||||
|
||||
|
@ -2217,6 +2222,10 @@ void WidgetInfo::EditListAddFiles()
|
|||
|
||||
QStringList files = OpenFiles(App()->GetMainWindow(), title,
|
||||
QT_UTF8(default_path), QT_UTF8(filter));
|
||||
#ifdef __APPLE__
|
||||
// TODO: Revisit when QTBUG-42661 is fixed
|
||||
widget->window()->raise();
|
||||
#endif
|
||||
|
||||
if (files.count() == 0)
|
||||
return;
|
||||
|
@ -2237,6 +2246,10 @@ void WidgetInfo::EditListAddDir()
|
|||
|
||||
QString dir = SelectDirectory(App()->GetMainWindow(), title,
|
||||
QT_UTF8(default_path));
|
||||
#ifdef __APPLE__
|
||||
// TODO: Revisit when QTBUG-42661 is fixed
|
||||
widget->window()->raise();
|
||||
#endif
|
||||
|
||||
if (dir.isEmpty())
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue