" style=\"color: #93a1a1;\">matt.j.keeter@gmail.com</a></p>");
}
-void Window::load_stl(const QString &filename)
+bool Window::load_stl(const QString& filename)
{
+ if (!open_action->isEnabled()) return false;
+
canvas->set_status("Loading " + filename);
Loader* loader = new Loader(this, filename);
this, &Window::setWindowTitle);
loader->start();
+ return true;
}
Q_OBJECT
public:
explicit Window(QWidget* parent=0);
- void load_stl(const QString& filename);
+ bool load_stl(const QString& filename);
public slots:
void on_open();