mirror of https://github.com/vitalif/openscad
Clifford Wolf:
Ask user when reloading with local midifications git-svn-id: http://svn.clifford.at/openscad/trunk@536 b57f626f-c46c-0410-a088-ec61d464b74cstl_dim
parent
4185b3128b
commit
7bfc4e224f
|
@ -961,6 +961,17 @@ void MainWindow::pasteViewportRotation()
|
|||
|
||||
void MainWindow::actionReloadCompile()
|
||||
{
|
||||
if (editor->isContentModified()) {
|
||||
QMessageBox::StandardButton ret;
|
||||
ret = QMessageBox::warning(this, "Application",
|
||||
"The document has been modified.\n"
|
||||
"Do you really want to reload the file?",
|
||||
QMessageBox::Yes | QMessageBox::No);
|
||||
if (ret != QMessageBox::Yes) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
console->clear();
|
||||
|
||||
load();
|
||||
|
|
Loading…
Reference in New Issue