mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
only save diretory if user actually chose one
This commit is contained in:
parent
d2f6a65eb5
commit
4d02b9945d
@ -47,7 +47,8 @@ LoadXSPFDialog::getLocalFile()
|
||||
{
|
||||
const QString path = TomahawkSettings::instance()->importXspfPath();
|
||||
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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user