Changeset 128:849b6055f443 for source
- Timestamp:
- Jan 27, 2009, 5:39:59 PM (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/class/pf/Application.js
r126 r128 425 425 updateGUI : function() 426 426 { 427 this.gui_configName.setLabel(this.prefs.currentConfigName); 427 if (this.prefs.currentConfigName) { 428 this.gui_configName.setLabel(this.prefs.currentConfigName); 429 } 428 430 429 431 this.gui_N_e.setNumValue(this.e.getN()); … … 2099 2101 saveConfigCB : function(ev) 2100 2102 { 2101 if (this.prefs.currentConfigName) { 2103 if (this.prefs.currentConfigName && 2104 this.prefs.currentConfigName != "Untitled") { 2102 2105 if (this.saveConfig(this.prefs.currentConfigName) != true) { 2103 2106 alert("Save failed!"); … … 2377 2380 } 2378 2381 2382 if (!this.prefs.currentConfigName) { 2383 this.prefs.currentConfigName = "Untitled"; 2384 } 2385 2379 2386 if (!this.prefs.configPtrs) { 2380 2387 this.prefs.configPtrs = new Array; … … 2645 2652 if (this.saveConfig(cfgname) == true) { 2646 2653 this.saveLoadWindow.close(); 2647 this.gui_configName.setLabel(this.prefs.currentConfigName); 2654 if (this.prefs.currentConfigName) { 2655 this.gui_configName.setLabel(this.prefs.currentConfigName); 2656 } 2648 2657 } else { 2649 2658 alert("Save failed!");
Note: See TracChangeset
for help on using the changeset viewer.