diff -r d9d5b83c1534 -r e1abdc480485 mainwindow.cc --- a/mainwindow.cc Sun Jan 22 15:31:01 2012 +0100 +++ b/mainwindow.cc Sun Jan 22 16:31:20 2012 +0100 @@ -22,6 +22,7 @@ this, tr("Open IGC file"), "flights", tr("IGC files (*.igc);; All files (*)")); + if (fileName.isEmpty()) return; currentFile.setFileName(fileName); @@ -32,6 +33,10 @@ return; } + input.setDevice(¤tFile); setWindowTitle(QFileInfo(fileName).baseName()); statusBar()->showMessage(tr("opening %1").arg(fileName), 5000); + + igc.read(input); + }