diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-01-26 08:49:37 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-01-26 08:49:37 +0900 |
commit | 92bb53cb48fb172f922e60ffccfcce3e3db26967 (patch) | |
tree | fef22a29d58539af3263967a9a776b563ce00ef1 | |
parent | 11f19f36b664e8755ff06f70ca12554e7a66acf6 (diff) | |
download | tdewebdev-92bb53cb48fb172f922e60ffccfcce3e3db26967.tar.gz tdewebdev-92bb53cb48fb172f922e60ffccfcce3e3db26967.zip |
Improvement to widget focus in TDEFileReplace and warning message clean up
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | tdefilereplace/knewprojectdlg.cpp | 2 | ||||
-rw-r--r-- | tdefilereplace/tdefilereplacepart.cpp | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/tdefilereplace/knewprojectdlg.cpp b/tdefilereplace/knewprojectdlg.cpp index bbdd8edd..06b703d2 100644 --- a/tdefilereplace/knewprojectdlg.cpp +++ b/tdefilereplace/knewprojectdlg.cpp @@ -220,6 +220,8 @@ void KNewProjectDlg::initGUI() loadBackupExtensionOptions(); loadLocationsList(); loadFiltersList(); + + m_leSearch->setFocus(); } void KNewProjectDlg::loadOptions() diff --git a/tdefilereplace/tdefilereplacepart.cpp b/tdefilereplace/tdefilereplacepart.cpp index e0bb9f97..008198e5 100644 --- a/tdefilereplace/tdefilereplacepart.cpp +++ b/tdefilereplace/tdefilereplacepart.cpp @@ -309,13 +309,14 @@ void TDEFileReplacePart::slotQuickStringsAdd() m_view->slotQuickStringsAdd(map[1],map[3]); - //if search-only mode == true and search-now mode == true then - //search string - if(map[0] == "N") - if(m_option->m_searchingOnlyMode) + //if search-only mode == true and search-now mode == true then search string + if (map[0] == "N") + { + if (m_option->m_searchingOnlyMode) slotSearchingOperation(); else slotReplacingOperation(); + } } void TDEFileReplacePart::slotStringsDeleteItem() |