Changeset 765e47c in sasview for src/sas


Ignore:
Timestamp:
May 5, 2015 7:37:50 AM (10 years ago)
Author:
Doucet, Mathieu <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
f22d219
Parents:
3b67c30
Message:

Re #390. Fix how the default perspective is set.

Location:
src/sas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/guiframe/gui_manager.py

    r415fb82 r765e47c  
    12951295            return 
    12961296        #replace or add a new menu for the current plugin 
    1297  
    12981297        pos = self._menubar.FindMenu(str(self._applications_menu_name)) 
    12991298        if pos != -1: 
     
    13081307            #get the position of the menu when it first added 
    13091308            self._applications_menu_pos = pos 
    1310  
    13111309        else: 
    13121310            menu_list = self._current_perspective.populate_menu(self) 
     
    13141312                for (menu, name) in menu_list: 
    13151313                    if self._applications_menu_pos == -1: 
    1316                         self._menubar.Append(menu, name) 
     1314                        # Find the Help position and insert just before it if possible 
     1315                        help_pos = self._menubar.FindMenu("Help") 
     1316                        if help_pos == -1: 
     1317                            self._menubar.Append(menu, name) 
     1318                        else: 
     1319                            self._menubar.Insert(help_pos-1, menu, name) 
    13171320                    else: 
    1318                         self._menubar.Insert(self._applications_menu_pos, 
    1319                                              menu, name) 
     1321                        self._menubar.Insert(self._applications_menu_pos, menu, name) 
    13201322                    self._applications_menu_name = name 
    13211323 
  • src/sas/perspectives/fitting/fitting.py

    r373d4ee r765e47c  
    8080        self.elapsed = 0.022 
    8181        self.fit_panel = None 
    82         #Flag to let the plug-in know that it is running stand alone 
    83         self.standalone = True 
    8482        ## dictionary of page closed and id 
    8583        self.closed_page_dict = {} 
Note: See TracChangeset for help on using the changeset viewer.