Clifford Wolf:

Ask user when reloading with local midifications



git-svn-id: http://svn.clifford.at/openscad/trunk@536 b57f626f-c46c-0410-a088-ec61d464b74c
stl_dim
clifford 2010-05-08 11:38:30 +00:00
parent 4185b3128b
commit 7bfc4e224f
1 changed files with 11 additions and 0 deletions

View File

@ -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();