Fixed crash on file open (silly qDebug)