summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2018-12-27 01:07:08 +0100
committerAl <gabriel.cortesi@outlook.com>2018-12-27 01:07:08 +0100
commitbbed72c6a358c2cab807ad8e01839a5381ba85c1 (patch)
tree960c50f6735739fcc4776127b0ab1a0b76f528c0 /src/mainwindow.cpp
parenta3110731ca275b857eb264d69996264be5e404f5 (diff)
*Made clear Filters button clear also the nameEdit filter
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 1e51977f..9969c0d5 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -795,6 +795,7 @@ void MainWindow::createHelpWidget()
void MainWindow::modFilterActive(bool filterActive)
{
+ ui->clearFiltersButton->setVisible(filterActive);
if (filterActive) {
// m_OrganizerCore.modList()->setOverwriteMarkers(std::set<unsigned int>(), std::set<unsigned int>());
ui->modList->setStyleSheet("QTreeView { border: 2px ridge #f00; }");
@@ -4400,8 +4401,6 @@ void MainWindow::on_categoriesList_itemSelectionChanged()
m_ModListSortProxy->setCategoryFilter(categories);
m_ModListSortProxy->setContentFilter(content);
ui->clickBlankButton->setEnabled(categories.size() > 0 || content.size() >0);
- //ui->clearFiltersButton->setStyleSheet("border:5px solid #ff0000;");
- ui->clearFiltersButton->setVisible(categories.size() > 0 || content.size() > 0);
if (indices.count() == 0) {
ui->currentCategoryLabel->setText(QString("(%1)").arg(tr("<All>")));
@@ -6190,6 +6189,7 @@ void MainWindow::on_clickBlankButton_clicked()
void MainWindow::on_clearFiltersButton_clicked()
{
+ ui->modFilterEdit->clear();
deselectFilters();
}