Instead of asking the user for where to place it...
I think %tmp% should always be writtable.
#include <QString>
#include <QDialogButtonBox>
#include <QEvent>
#include <QString>
#include <QDialogButtonBox>
#include <QEvent>
#include <QDate>
#include <QPushButton>
#include <QDate>
#include <QPushButton>
- 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;
if( !dest_dir.isEmpty() )
{
dest_dir = toNativeSepNoSlash( dest_dir ) + DIR_SEP;