Index: kio/kfile/kfiledialog.cpp
===================================================================
--- kio/kfile/kfiledialog.cpp	(revision 939789)
+++ kio/kfile/kfiledialog.cpp	(working copy)
@@ -244,6 +244,12 @@
       d( new KFileDialogPrivate )
 
 {
+
+	// Dlopen the file widget from libkfilemodule
+    QWidget* fileQWidget = fileModule()->createFileWidget(startDir, this);
+    d->w = ::qobject_cast<KAbstractFileWidget *>(fileQWidget);
+
+
     if (d->native) {
         KFileDialogPrivate::Native::s_startDir = startDir;
         // check if it's a mimefilter
@@ -259,9 +265,6 @@
     restoreDialogSize(d->cfgGroup); // call this before the fileQWidget is set as the main widget.
                                    // otherwise the sizes for the components are not obeyed (ereslibre)
 
-    // Dlopen the file widget from libkfilemodule
-    QWidget* fileQWidget = fileModule()->createFileWidget(startDir, this);
-    d->w = ::qobject_cast<KAbstractFileWidget *>(fileQWidget);
 
     d->w->setFilter(filter);
     setMainWidget(fileQWidget);
