r21704 by jghali - #14535: Search dialog should focus to searched text input

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 7 12:44:32 UTC 2017


Author: jghali
Date: Sat Jan  7 12:44:32 2017
New Revision: 21704

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21704
Log:
#14535: Search dialog should focus to searched text input

Modified:
    trunk/Scribus/scribus/ui/search.cpp

Modified: trunk/Scribus/scribus/ui/search.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21704&path=/trunk/Scribus/scribus/ui/search.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/search.cpp	(original)
+++ trunk/Scribus/scribus/ui/search.cpp	Sat Jan  7 12:44:32 2017
@@ -1110,6 +1110,7 @@
 	RSizeVal->setValue(m_prefs->getDouble("RSizeVal", m_doc->currentStyle.charStyle().fontSize() / 10.0));
 	Word->setChecked(m_prefs->getBool("Word", false));
 	CaseIgnore->setChecked(m_prefs->getBool("CaseIgnore", false));
+
 	enableTxSearch();
 	enableStyleSearch();
 	enableAlignSearch();
@@ -1130,6 +1131,9 @@
 	enableFillSReplace();
 	enableStrokeReplace();
 	enableStrokeSReplace();
+
+	if (SText->isChecked() && RText->isChecked())
+		STextVal->setFocus();
 }
 
 void SearchReplace::writePrefs()




More information about the scribus-commit mailing list