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;
QString filename;
QDir home;
QFileDialog dialog(this);
filename = dialog.getOpenFileName(this,
filename = QFileDialog::getOpenFileName(0,
"Open GCODE",
home.home().absolutePath(),
"GCODE (*.g *.gcode *.nc)");