Ignore:
Timestamp:
Jan 27, 2009, 5:39:59 PM (15 years ago)
Author:
fnevgeny
Branch:
default
Phase:
public
Message:

Make the default config name "Untitled".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/class/pf/Application.js

    r126 r128  
    425425        updateGUI : function()
    426426        {
    427             this.gui_configName.setLabel(this.prefs.currentConfigName);
     427            if (this.prefs.currentConfigName) {
     428                this.gui_configName.setLabel(this.prefs.currentConfigName);
     429            }
    428430           
    429431            this.gui_N_e.setNumValue(this.e.getN());
     
    20992101        saveConfigCB : function(ev)
    21002102        {
    2101             if (this.prefs.currentConfigName) {
     2103            if (this.prefs.currentConfigName &&
     2104                this.prefs.currentConfigName != "Untitled") {
    21022105                if (this.saveConfig(this.prefs.currentConfigName) != true) {
    21032106                    alert("Save failed!");
     
    23772380            }
    23782381           
     2382            if (!this.prefs.currentConfigName) {
     2383                this.prefs.currentConfigName = "Untitled";
     2384            }
     2385           
    23792386            if (!this.prefs.configPtrs) {
    23802387                this.prefs.configPtrs = new Array;
     
    26452652                            if (this.saveConfig(cfgname) == true) {
    26462653                                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                                }
    26482657                            } else {
    26492658                                alert("Save failed!");
Note: See TracChangeset for help on using the changeset viewer.