Skip to content

Commit

Permalink
Refs #8560. Fixed statusbar messages
Browse files Browse the repository at this point in the history
Discovered that the messages in the statusbar would dissapear when opening a menu. This was because of the temporary messages is was using.

The statusbar now has a standard message "Ready" and only uses temporary messages for the search notification.
  • Loading branch information
keithnbrown committed Jan 22, 2014
1 parent 3de264d commit bebfe50
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Code/Mantid/scripts/Interface/ui/reflectometer/refl_gui.py
Expand Up @@ -71,10 +71,8 @@ def setupUi(self, windowRefl):
self.instrumentList = ['INTER', 'SURF', 'CRISP', 'POLREF']
for inst in self.instrumentList:
self.comboInstrument.addItem(inst)
self.statusMain.clearMessage()
self.statusMain.showMessage("Ready")
#self.labelStatus = QtGui.QLabel("Ready")
#self.statusMain.addWidget(self.labelStatus)
self.labelStatus = QtGui.QLabel("Ready")
self.statusMain.addWidget(self.labelStatus)
self.initTable()
self.populateList()
self.windowRefl = windowRefl
Expand Down Expand Up @@ -138,7 +136,6 @@ def populateList(self):
self.spinDepth.setMaximum(self.__instrumentRuns.getNumCycles())
if self.textRB.text():
runs = []
self.statusMain.clearMessage()
self.statusMain.showMessage("Searching Journals for RB number: " + self.textRB.text())
try:
runs = self.__instrumentRuns.getJournalRuns(self.textRB.text(),self.spinDepth.value())
Expand All @@ -147,7 +144,6 @@ def populateList(self):
QtGui.QMessageBox.critical(self.tableMain, 'Error Retrieving Archive Runs',"Problem encountered when listing archive runs. Please check your network connection and that you have access to the journal archives.")
runs = []
self.statusMain.clearMessage()
self.statusMain.showMessage("Ready")
for run in runs:
self.listMain.addItem(run)
except Exception as ex:
Expand Down

0 comments on commit bebfe50

Please sign in to comment.