summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-06 06:07:23 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-06 06:07:23 (GMT)
commit73e84ec660737616a22f5e8edbe95a69d2652c99 (patch)
tree521f420959fb07af027b8292702babd459d39d25
parentbc88fb8c39a69403e109764703b613a215452d1a (diff)
Clifford Wolf:
Indenting fix git-svn-id: http://svn.clifford.at/openscad/trunk@213 b57f626f-c46c-0410-a088-ec61d464b74c
-rw-r--r--mainwin.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/mainwin.cc b/mainwin.cc
index 534d199..5fcead0 100644
--- a/mainwin.cc
+++ b/mainwin.cc
@@ -715,23 +715,20 @@ void MainWindow::actionSave()
void MainWindow::actionSaveAs()
{
- QString new_filename =
- QFileDialog::getSaveFileName(this, "Save File",
- this->fileName.isEmpty()?"Untitled.scad":this->fileName,
- "OpenSCAD Designs (*.scad)");
+ QString new_filename = QFileDialog::getSaveFileName(this, "Save File",
+ this->fileName.isEmpty()?"Untitled.scad":this->fileName,
+ "OpenSCAD Designs (*.scad)");
if (!new_filename.isEmpty()) {
if (QFileInfo(new_filename).suffix().isEmpty()) {
new_filename.append(".scad");
- // Manual overwrite check since Qt doesn't do it, when using the
+ // Manual overwrite check since Qt doesn't do it, when using the
// defaultSuffix property
QFileInfo info(new_filename);
if (info.exists()) {
if (QMessageBox::warning(this, windowTitle(),
- tr("%1 already exists.\nDo you want to replace it?")
- .arg(info.fileName()),
- QMessageBox::Yes | QMessageBox::No, QMessageBox::No)
- != QMessageBox::Yes) {
+ tr("%1 already exists.\nDo you want to replace it?").arg(info.fileName()),
+ QMessageBox::Yes | QMessageBox::No, QMessageBox::No) != QMessageBox::Yes) {
return;
}
}
contact: Jan Huwald // Impressum