Second attempt to fix windows crash

This commit is contained in:
NeoTheFox 2015-03-11 21:01:52 +03:00
parent b19ee6d8fb
commit ba4d605aae

View File

@ -144,8 +144,7 @@ void MainWindow::open()
sdprinting = false; sdprinting = false;
QString filename; QString filename;
QDir home; QDir home;
QFileDialog dialog(this); filename = QFileDialog::getOpenFileName(0,
filename = dialog.getOpenFileName(this,
"Open GCODE", "Open GCODE",
home.home().absolutePath(), home.home().absolutePath(),
"GCODE (*.g *.gcode *.nc)"); "GCODE (*.g *.gcode *.nc)");