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

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