[Bug 362292] extragear/office/kile/src

tbraun braun at physik.fu-berlin.de
Mon Apr 20 21:28:23 UTC 2009


SVN commit 956896 by tbraun:

always suggest the current katepart default encoding at the open file dialoge.
At the save dialogue we always suggest the current document encoding and not the katepart default opening saving, this is done for safety atm.

CCMAIL: 362292 at bugs.launchpad.net


 M  +4 -1      kiledocmanager.cpp


--- trunk/extragear/office/kile/src/kiledocmanager.cpp #956895:956896
@@ -708,8 +708,11 @@
 	                 + extensions->metapostFileFilter() + '\n'
 	                 + "*|" + i18n("All Files");
 
+	// try to get the current encoding, this is kind of ugly ...
+	QString encoding = m_ki->toolManager()->config()->group("Kate Document Defaults").readEntry("Encoding","");
+
 	//get the URLs
-	KEncodingFileDialog::Result result = KEncodingFileDialog::getOpenUrlsAndEncoding(QString (), currentDir, filter, m_ki->mainWindow(), i18n("Open Files"));
+	KEncodingFileDialog::Result result = KEncodingFileDialog::getOpenUrlsAndEncoding(encoding, currentDir, filter, m_ki->mainWindow(), i18n("Open Files"));
 	
 	//open them
 	KUrl::List urls = result.URLs;

-- 
kile opens with utf8 even if different option set
https://bugs.launchpad.net/bugs/362292
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kile in ubuntu.




More information about the kubuntu-bugs mailing list