fantasdic r381 - in trunk: . lib/fantasdic/ui
- From: mblondel svn gnome org
- To: svn-commits-list gnome org
- Subject: fantasdic r381 - in trunk: . lib/fantasdic/ui
- Date: Wed, 7 Jan 2009 01:44:42 +0000 (UTC)
Author: mblondel
Date: Wed Jan 7 01:44:41 2009
New Revision: 381
URL: http://svn.gnome.org/viewvc/fantasdic?rev=381&view=rev
Log:
* lib/fantasdic/ui/main_app.rb: Fixed bug when source doesn't exist anymore.
Modified:
trunk/ChangeLog
trunk/lib/fantasdic/ui/main_app.rb
Modified: trunk/lib/fantasdic/ui/main_app.rb
==============================================================================
--- trunk/lib/fantasdic/ui/main_app.rb (original)
+++ trunk/lib/fantasdic/ui/main_app.rb Wed Jan 7 01:44:41 2009
@@ -597,7 +597,8 @@
def default_strategy_of_selected_dictionary
hash = @prefs.dictionaries_infos[selected_dictionary]
source_class = Source::Base.get_source(hash[:source])
- source_class.default_strategy
+ klass = source_class ? source_class : Source::Base
+ klass.default_strategy
end
def selected_dictionary
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]