r18614 by fschmid - Fixed Bug #11856: Turning on the preview in file dialogs makes directory and file selectors unreadable

scribus-commit scribus-commit at lists.scribus.net
Sun Dec 1 08:35:29 UTC 2013


Author: fschmid
Date: Sun Dec  1 08:35:29 2013
New Revision: 18614

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18614
Log:
Fixed Bug #11856: Turning on the preview in file dialogs makes directory and file selectors unreadable

Modified:
    trunk/Scribus/scribus/ui/customfdialog.cpp

Modified: trunk/Scribus/scribus/ui/customfdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18614&path=/trunk/Scribus/scribus/ui/customfdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/customfdialog.cpp (original)
+++ trunk/Scribus/scribus/ui/customfdialog.cpp Sun Dec  1 08:35:29 2013
@@ -22,6 +22,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <QApplication>
 #include <QCheckBox>
 #include <QComboBox>
 #include <QDir>
@@ -490,6 +491,13 @@
 		if (!sel.isEmpty())
 			pw->GenPreview(QDir::fromNativeSeparators(sel[0]));
 	}
+	qApp->processEvents();
+	pw->setVisible(!previewIsShown);
+	qApp->processEvents();
+	pw->setVisible(previewIsShown);
+	fileDialog->repaint();
+	qApp->processEvents();
+	repaint();
 }
 
 void CustomFDialog::setSelection(QString sel)




More information about the scribus-commit mailing list