changeset 10 | e1abdc480485 |
parent 9 | d9d5b83c1534 |
child 12 | 84b0f3ca474a |
--- 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); + }