diff options
author | Vincent Reher <tde@4reher.org> | 2022-07-20 11:06:06 -0700 |
---|---|---|
committer | Vincent Reher <tde@4reher.org> | 2023-10-03 09:05:14 -0700 |
commit | 1ecedf73b2c24d1557c6d3d2753ca13be7547aee (patch) | |
tree | 47af397a8ef588982131b66d78bbea83770c1ceb /konqueror/listview/konq_listview.cpp | |
parent | f9729e80f5b9191c28b796e71a54a5bf5463ddcd (diff) | |
download | tdebase-1ecedf73b2c24d1557c6d3d2753ca13be7547aee.tar.gz tdebase-1ecedf73b2c24d1557c6d3d2753ca13be7547aee.zip |
Updates to accommodate tdelibs PR 163 commit 7cd3caffa5.
Signed-off-by: Vincent Reher <tde@4reher.org>
Diffstat (limited to 'konqueror/listview/konq_listview.cpp')
-rw-r--r-- | konqueror/listview/konq_listview.cpp | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/konqueror/listview/konq_listview.cpp b/konqueror/listview/konq_listview.cpp index b7956bfcb..6752dbac1 100644 --- a/konqueror/listview/konq_listview.cpp +++ b/konqueror/listview/konq_listview.cpp @@ -273,8 +273,7 @@ KonqListView::KonqListView( TQWidget *parentWidget, TQObject *parent, const char m_sortColumnIndexPrimary = 0; m_sortColumnIndexAlternate = 1; - TDEIO::HiddenFileMatcher* matcher = TDEIO::HiddenFileMatcher::getInstance(); - matcher->setCriteria( m_pProps->hiddenFileSpec() ); + m_pListView->m_dirLister->matcher->setCriteria( m_pProps->hiddenFileSpec() ); setupActions(); @@ -485,14 +484,27 @@ void KonqListView::slotChangeHiddenFileMatcher() /* Since the user might be providing *updated* hidden file match properties, we first need to make sure that we are showing (not hiding) "hidden" files - as defined by the *current*. Otherwise there can be a lot of confusion! + as defined by the *current* match properties. Otherwise there can be + a lot of confusion! */ m_paShowDot->setChecked( TRUE ); slotShowDot(); - TDEIO::HiddenFileMatcher* matcher = TDEIO::HiddenFileMatcher::getInstance(); - if ( matcher->getMatchPropertiesFromUser() ) { - m_pProps->setHiddenFileSpec ( matcher->getCriteria() ); + int result = m_pListView->m_dirLister->matcher->getMatchPropertiesFromUser() ; + + switch ( result ) { + case TDEIO::HiddenFileMatcher::criteriaUnchanged: + return; + break; + case TDEIO::HiddenFileMatcher::criteriaApplied: + return; + break; + case TDEIO::HiddenFileMatcher::saveCriteria: + m_pProps->setHiddenFileSpec( m_pListView->m_dirLister->matcher->getCriteria() ); + break; + case TDEIO::HiddenFileMatcher::reloadCriteria: + m_pListView->m_dirLister->matcher->setCriteria( m_pProps->hiddenFileSpec() ); + break; } } |