Hi,<br><br>I have considered it but I am not able to find the file in the code used to preserve data between restarts. Should I make one of my own?<br><br clear="all">Thanks &amp; Regards,<br>Prashant Bhutani<br>
<br><br><div class="gmail_quote">On Tue, Oct 5, 2010 at 1:57 PM, Bernhard Beschow <span dir="ltr">&lt;<a href="mailto:bbeschow@cs.tu-berlin.de">bbeschow@cs.tu-berlin.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi!<br>
<br>
Thanks for your patch, it looks already very good! Have you considered to preserve the last directory also across restarts of Marble?<br>
<br>
Greetings,<br>
Bernhard<br>
<br>
Am Dienstag, 5. Oktober 2010, 06:50:08 schrieb prashant bhutani:<br>
<div><div></div><div class="h5">&gt; Hi all,<br>
&gt;<br>
&gt; For Qt version of the Junior Job[1] , I am attaching the patch file (as well<br>
&gt; as code[2] in this mail).<br>
&gt; I have tested it. It is working and remembering the directory last opened.<br>
&gt; Please review it and do tell me if I am wrong.<br>
&gt;<br>
&gt; Thanks &amp; Regards,<br>
&gt; Prashant Bhutani<br>
&gt;<br>
&gt; [1]<br>
&gt; <a href="http://techbase.kde.org/Projects/Marble/GoMarble/JJ#Let_the_.22Open_....22_file_dialog_remember_the_previously_used_directory" target="_blank">http://techbase.kde.org/Projects/Marble/GoMarble/JJ#Let_the_.22Open_....22_file_dialog_remember_the_previously_used_directory</a><br>


&gt;<br>
&gt; [2] Here is the patch data ::<br>
&gt; *Index: trunk/marble/src/QtMainWindow.cpp<br>
&gt; ===================================================================<br>
&gt; --- trunk/marble/src/QtMainWindow.cpp    (revision 8)<br>
&gt; +++ trunk/marble/src/QtMainWindow.cpp    (revision 9)<br>
&gt; @@ -661,10 +661,15 @@<br>
&gt;<br>
&gt;  void MainWindow::openFile()<br>
&gt;  {<br>
&gt; +    static QString currentDir = QString();<br>
&gt;      QStringList fileNames = QFileDialog::getOpenFileNames(this, tr(&quot;Open<br>
&gt; File&quot;),<br>
&gt; -                            QString(),<br>
&gt; +                            currentDir,<br>
&gt;                              tr(&quot;All Supported Files (*.gpx *.kml);;GPS Data<br>
&gt; (*.gpx);;Google Earth KML (*.kml)&quot;));<br>
&gt;<br>
&gt; +    QDir dirObj;<br>
&gt; +<br>
&gt; +    currentDir = dirObj.absoluteFilePath( fileNames.at( fileNames.size()<br>
&gt; -1);<br>
&gt; +<br>
&gt;      foreach( const QString &amp;fileName, fileNames ) {<br>
</div></div><div><div></div><div class="h5">&gt;          QString extension = fileName.section( &#39;.&#39;, -1 );*<br>
&gt;<br>
<br>
_______________________________________________<br>
Marble-devel mailing list<br>
<a href="mailto:Marble-devel@kde.org">Marble-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/marble-devel" target="_blank">https://mail.kde.org/mailman/listinfo/marble-devel</a><br>
</div></div></blockquote></div><br>