Commit f189f90f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt: use %tmp%/$TMP folder for updates

Instead of asking the user for where to place it...
I think %tmp% should always be writtable.
parent 8853c752
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment