Skip to content

Commit

Permalink
Fix really obnoxious crash bug when opening files
Browse files Browse the repository at this point in the history
  • Loading branch information
bweir committed May 25, 2016
1 parent 582d226 commit 6cad0b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/propelleride/filemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ void FileManager::open()
QStringList fileNames = QFileDialog::getOpenFileNames(this,
tr("Open File"), getDirectory(), "Spin Files (*.spin);;All Files (*)");

setDirectory(QDir(fileNames[0]).path());

for (int i = 0; i < fileNames.size(); i++)
if (!fileNames.at(i).isEmpty())
{
setDirectory(QDir(fileNames.at(i)).path());
openFile(fileNames.at(i));

}
}


Expand Down

0 comments on commit 6cad0b6

Please sign in to comment.