]> git.sesse.net Git - vlc/commitdiff
Qt: use %tmp%/$TMP folder for updates
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 31 Oct 2011 17:43:49 +0000 (18:43 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 31 Oct 2011 17:47:27 +0000 (18:47 +0100)
Instead of asking the user for where to place it...
I think %tmp% should always be writtable.

modules/gui/qt4/dialogs/help.cpp

index 4fee7ed452ebc002e0e215cfe06da646739bcc5a..a288ce1e409cad500dd646ac0ac073dbab6be9e0 100644 (file)
@@ -43,7 +43,6 @@
 #include <QString>
 #include <QDialogButtonBox>
 #include <QEvent>
-#include <QFileDialog>
 #include <QDate>
 #include <QPushButton>
 
@@ -201,10 +200,7 @@ void UpdateDialog::UpdateOrDownload()
     }
     else
     {
-        QString dest_dir = QFileDialog::getExistingDirectory( this,
-                                 qtr( I_OP_SEL_DIR ),
-                                 QVLCUserDir( VLC_DOWNLOAD_DIR ) );
-
+        QString dest_dir = QDir::tempPath();
         if( !dest_dir.isEmpty() )
         {
             dest_dir = toNativeSepNoSlash( dest_dir ) + DIR_SEP;