Commit 527d3507 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix Windows open dialog issue on paste

Close #6242
parent 0585f023
......@@ -497,10 +497,11 @@ void DiscOpenPanel::updateMRL()
QString discPath;
QStringList fileList;
if( ui.deviceCombo->itemData( ui.deviceCombo->currentIndex() ) != QVariant::Invalid )
discPath = ui.deviceCombo->itemData( ui.deviceCombo->currentIndex() ).toString();
else
discPath = ui.deviceCombo->currentText();
discPath = ui.deviceCombo->currentText();
int tmp = ui.deviceCombo->findText( discPath );
if( tmp != -1 && ui.deviceCombo->itemData( tmp ) != QVariant::Invalid )
discPath = ui.deviceCombo->itemData( tmp ).toString();
/* MRL scheme */
const char *scheme;
......@@ -573,7 +574,6 @@ void DiscOpenPanel::browseDevice()
{
ui.deviceCombo->addItem( toNativeSepNoSlash( dir ) );
ui.deviceCombo->setCurrentIndex( ui.deviceCombo->findText( toNativeSepNoSlash( dir ) ) );
updateMRL();
}
updateMRL();
......
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