From: Jean-Baptiste Kempf Date: Mon, 31 Oct 2011 17:43:49 +0000 (+0100) Subject: Qt: use %tmp%/$TMP folder for updates X-Git-Tag: 1.2.0-pre1~46 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f189f90f64398ff389a3866a683770503dbd515d;p=vlc Qt: use %tmp%/$TMP folder for updates Instead of asking the user for where to place it... I think %tmp% should always be writtable. --- diff --git a/modules/gui/qt4/dialogs/help.cpp b/modules/gui/qt4/dialogs/help.cpp index 4fee7ed452..a288ce1e40 100644 --- a/modules/gui/qt4/dialogs/help.cpp +++ b/modules/gui/qt4/dialogs/help.cpp @@ -43,7 +43,6 @@ #include #include #include -#include #include #include @@ -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;