From f189f90f64398ff389a3866a683770503dbd515d Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Mon, 31 Oct 2011 18:43:49 +0100 Subject: [PATCH] Qt: use %tmp%/$TMP folder for updates Instead of asking the user for where to place it... I think %tmp% should always be writtable. --- modules/gui/qt4/dialogs/help.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; -- 2.39.2