mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-23 14:13:57 +02:00
only save diretory if user actually chose one
This commit is contained in:
@@ -47,7 +47,8 @@ LoadXSPFDialog::getLocalFile()
|
|||||||
{
|
{
|
||||||
const QString path = TomahawkSettings::instance()->importXspfPath();
|
const QString path = TomahawkSettings::instance()->importXspfPath();
|
||||||
QString url = QFileDialog::getOpenFileName( this, tr( "Load XSPF File" ), path, tr( "XSPF Files (*.xspf)" ) );
|
QString url = QFileDialog::getOpenFileName( this, tr( "Load XSPF File" ), path, tr( "XSPF Files (*.xspf)" ) );
|
||||||
TomahawkSettings::instance()->setImportXspfPath( QFileInfo( url ).absoluteDir().absolutePath() );
|
if ( !url.isEmpty() )
|
||||||
|
TomahawkSettings::instance()->setImportXspfPath( QFileInfo( url ).absoluteDir().absolutePath() );
|
||||||
|
|
||||||
m_ui->lineEdit->setText( url );
|
m_ui->lineEdit->setText( url );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user