mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix crash in saving document from media viewer.
This commit is contained in:
@@ -970,9 +970,9 @@ bool Application::minimizeActiveWindow() {
|
||||
|
||||
QWidget *Application::getFileDialogParent() {
|
||||
return (_mediaView && !_mediaView->isHidden())
|
||||
? (QWidget*)_mediaView.get()
|
||||
? static_cast<QWidget*>(_mediaView->widget())
|
||||
: activeWindow()
|
||||
? (QWidget*)activeWindow()->widget()
|
||||
? static_cast<QWidget*>(activeWindow()->widget())
|
||||
: nullptr;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user