mirror of https://github.com/vitalif/openscad
Clifford Wolf:
Indenting fix git-svn-id: http://svn.clifford.at/openscad/trunk@213 b57f626f-c46c-0410-a088-ec61d464b74cstl_dim
parent
bc88fb8c39
commit
73e84ec660
|
@ -715,8 +715,7 @@ void MainWindow::actionSave()
|
||||||
|
|
||||||
void MainWindow::actionSaveAs()
|
void MainWindow::actionSaveAs()
|
||||||
{
|
{
|
||||||
QString new_filename =
|
QString new_filename = QFileDialog::getSaveFileName(this, "Save File",
|
||||||
QFileDialog::getSaveFileName(this, "Save File",
|
|
||||||
this->fileName.isEmpty()?"Untitled.scad":this->fileName,
|
this->fileName.isEmpty()?"Untitled.scad":this->fileName,
|
||||||
"OpenSCAD Designs (*.scad)");
|
"OpenSCAD Designs (*.scad)");
|
||||||
if (!new_filename.isEmpty()) {
|
if (!new_filename.isEmpty()) {
|
||||||
|
@ -728,10 +727,8 @@ void MainWindow::actionSaveAs()
|
||||||
QFileInfo info(new_filename);
|
QFileInfo info(new_filename);
|
||||||
if (info.exists()) {
|
if (info.exists()) {
|
||||||
if (QMessageBox::warning(this, windowTitle(),
|
if (QMessageBox::warning(this, windowTitle(),
|
||||||
tr("%1 already exists.\nDo you want to replace it?")
|
tr("%1 already exists.\nDo you want to replace it?").arg(info.fileName()),
|
||||||
.arg(info.fileName()),
|
QMessageBox::Yes | QMessageBox::No, QMessageBox::No) != QMessageBox::Yes) {
|
||||||
QMessageBox::Yes | QMessageBox::No, QMessageBox::No)
|
|
||||||
!= QMessageBox::Yes) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue