[Pkg-owncloud-commits] [owncloud-client] 18/120: IgnoreEditor: Rename confusing checkbox

Sandro Knauß hefee-guest at moszumanska.debian.org
Mon Aug 24 00:02:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit a6d70c9c63c14b0d0d89ed6ed51b624e0a76b118
Author: Christian Kamm <mail at ckamm.de>
Date:   Mon Aug 10 11:07:41 2015 +0200

    IgnoreEditor: Rename confusing checkbox
    
    The label was the negation of its name.
---
 src/gui/ignorelisteditor.cpp | 7 +++----
 src/gui/ignorelisteditor.ui  | 2 +-
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/gui/ignorelisteditor.cpp b/src/gui/ignorelisteditor.cpp
index 5423036..d18c40f 100644
--- a/src/gui/ignorelisteditor.cpp
+++ b/src/gui/ignorelisteditor.cpp
@@ -58,7 +58,7 @@ IgnoreListEditor::IgnoreListEditor(QWidget *parent) :
     ui->tableWidget->horizontalHeader()->setResizeMode(patternCol, QHeaderView::Stretch);
     ui->tableWidget->verticalHeader()->setVisible(false);
 
-    ui->ignoreHiddenFilesCheckBox->setChecked( !FolderMan::instance()->ignoreHiddenFiles() );
+    ui->syncHiddenFilesCheckBox->setChecked( !FolderMan::instance()->ignoreHiddenFiles() );
 }
 
 IgnoreListEditor::~IgnoreListEditor()
@@ -68,7 +68,7 @@ IgnoreListEditor::~IgnoreListEditor()
 
 bool IgnoreListEditor::ignoreHiddenFiles()
 {
-    return ! ui->ignoreHiddenFilesCheckBox->isChecked();
+    return ! ui->syncHiddenFilesCheckBox->isChecked();
 }
 
 void IgnoreListEditor::slotItemSelectionChanged()
@@ -119,12 +119,11 @@ void IgnoreListEditor::slotUpdateLocalIgnoreList()
     }
 
     /* handle the hidden file checkbox */
-    bool ignoreHiddenFiles = ! ui->ignoreHiddenFilesCheckBox->isChecked();
 
     /* the ignoreHiddenFiles flag is a folder specific setting, but for now, it is
      * handled globally. Save it to every folder that is defined.
      */
-    FolderMan::instance()->setIgnoreHiddenFiles(ignoreHiddenFiles);
+    FolderMan::instance()->setIgnoreHiddenFiles(ignoreHiddenFiles());
 }
 
 void IgnoreListEditor::slotAddPattern()
diff --git a/src/gui/ignorelisteditor.ui b/src/gui/ignorelisteditor.ui
index 35d0481..0883862 100644
--- a/src/gui/ignorelisteditor.ui
+++ b/src/gui/ignorelisteditor.ui
@@ -21,7 +21,7 @@
      </property>
      <layout class="QGridLayout" name="gridLayout_2">
       <item row="0" column="0">
-       <widget class="QCheckBox" name="ignoreHiddenFilesCheckBox">
+       <widget class="QCheckBox" name="syncHiddenFilesCheckBox">
         <property name="text">
          <string>Sync hidden files</string>
         </property>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list