IgnoreEditor: Rename confusing checkbox

The label was the negation of its name.
This commit is contained in:
Christian Kamm 2015-08-10 11:07:41 +02:00
parent c2c924931b
commit a6d70c9c63
2 changed files with 4 additions and 5 deletions

View file

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

View file

@ -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>