Hi all,<br><br>For Qt version of the Junior Job[1] , I am attaching the patch file (as well as code[2] in this mail).<br>I have tested it. It is working and remembering the directory last opened.<br>Please review it and do tell me if I am wrong.<br clear="all">

<br>Thanks &amp; Regards,
<br>
Prashant Bhutani<br><br>[1] <a href="http://techbase.kde.org/Projects/Marble/GoMarble/JJ#Let_the_.22Open_....22_file_dialog_remember_the_previously_used_directory">http://techbase.kde.org/Projects/Marble/GoMarble/JJ#Let_the_.22Open_....22_file_dialog_remember_the_previously_used_directory</a><br>

<br>[2] Here is the patch data ::<br>
<i>Index: trunk/marble/src/QtMainWindow.cpp<br>
===================================================================<br>
--- trunk/marble/src/QtMainWindow.cpp    (revision 8)<br>
+++ trunk/marble/src/QtMainWindow.cpp    (revision 9)<br>
@@ -661,10 +661,15 @@<br>
 <br>
 void MainWindow::openFile()<br>
 {<br>
+    static QString currentDir = QString();<br>
     QStringList fileNames = QFileDialog::getOpenFileNames(this, tr(&quot;Open File&quot;),<br>
-                            QString(), <br>
+                            currentDir, <br>
                             tr(&quot;All Supported Files (*.gpx *.kml);;GPS Data (*.gpx);;Google Earth KML (*.kml)&quot;));<br>
 <br>
+    QDir dirObj;<br>
+<br>
+    currentDir = dirObj.absoluteFilePath( fileNames.at( fileNames.size() -1);<br>
+<br>
     foreach( const QString &amp;fileName, fileNames ) {<br>
         QString extension = fileName.section( &#39;.&#39;, -1 );</i><br>