From ef82394b6f9a63dd23ecedfd107b477267e0d2f9 Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Tue, 25 Aug 2015 00:03:57 +0200 Subject: File dialogs seem to always require a parent. Without it Qt5 enters in a kind of modal loop that prevents user from interacting with the whole application. --- src/modules/sharedfileswindow/SharedFilesWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/sharedfileswindow') diff --git a/src/modules/sharedfileswindow/SharedFilesWindow.cpp b/src/modules/sharedfileswindow/SharedFilesWindow.cpp index 8ddbb2920..ad1365f81 100644 --- a/src/modules/sharedfileswindow/SharedFilesWindow.cpp +++ b/src/modules/sharedfileswindow/SharedFilesWindow.cpp @@ -133,7 +133,7 @@ void SharedFileEditDialog::browse() { QString szBuf; QString szTxt = m_pFilePathEdit->text(); - if(!KviFileDialog::askForOpenFileName(szBuf,__tr2qs("Choose the file to share"),szTxt))return; + if(!KviFileDialog::askForOpenFileName(szBuf,__tr2qs("Choose the file to share"),szTxt,QString(),false,true,this))return; m_pFilePathEdit->setText(szBuf); } -- cgit v1.3.1-10-gc9f91