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

Qt: don't open empty files.

parent 0aa09ae1
......@@ -189,7 +189,10 @@ void FileOpenPanel::updateMRL()
QString mrl;
for( int i = 0; i < ui.fileListWidg->count(); i++ )
fileList << ui.fileListWidg->item( i )->text();
{
if( !ui.fileListWidg->item( i )->text().isEmpty() )
fileList << ui.fileListWidg->item( i )->text();
}
if( ui.subCheckBox->isChecked() && !ui.subInput->text().isEmpty() ) {
mrl.append( " :sub-file=" + colon_escape( ui.subInput->text() ) );
......
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