Ignore:
Timestamp:
Mar 31, 2020 6:55:54 PM (5 years ago)
Author:
maronga
Message:

Bugfix for copyright updates in document_changes; copyright update applied to all files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrungui

    r4470 r4481  
    1515# PALM. If not, see <http://www.gnu.org/licenses/>.
    1616#
    17 # Copyright 1997-2018  Leibniz Universitaet Hannover
     17# Copyright 1997-2020  Leibniz Universitaet Hannover
    1818#--------------------------------------------------------------------------------#
    1919#
     
    2525# -----------------
    2626# $Id$
     27# Bugfixes: - reading history lines discard button caused error message
     28#           - deleting of USER_CODE files did not work
     29#
     30# 4470 2020-03-24 06:52:19Z maronga
    2731# Added file size output, more I/O functionalities, new/removed buttons
    2832#
     
    11121116       opt.exec_()
    11131117
    1114        palmrunline = str(history_entry)
    1115        palmrunline = palmrunline[17:]
    1116        palmrunline = palmrunline[:len(palmrunline)-1]
    1117        palmrunline = filter(None,palmrunline.split("("))[0]
    1118        self.groupBox.findChild(QtGui.QLineEdit,"commandline").setText(palmrunline)
    1119 
    1120 #      Set selected item to jobname in "available jobs" list
    1121        jobname = str(history_entry[17:])
    1122        jobname = filter(None,jobname.split(" -r"))[1]
    1123        jobname = jobname.strip()
    1124        jobname = filter(None,jobname.split(" "))[0]
    1125        jobname = jobname.replace("\"","")
    1126        item2int = self.list_jobs.findItems(jobname,QtCore.Qt.MatchCaseSensitive)
    1127 
    1128        if ( item2int != [] ):
    1129           self.list_jobs.setCurrentItem(item2int[0])
    1130           self.update_input()
    1131 
    1132 #      Add tooltip tag
    1133        tag = str(history_entry).split('\n')[0]
    1134        tag = filter(None,tag.split("("))[1]
    1135        tag = tag.replace(")","")
    1136        self.groupBox.findChild(QtGui.QLineEdit,"line_tag").setText(tag)
     1118       if ( history_entry != "" ):
     1119          palmrunline = str(history_entry)
     1120          palmrunline = palmrunline[17:]
     1121          palmrunline = palmrunline[:len(palmrunline)-1]
     1122          palmrunline = filter(None,palmrunline.split("("))[0]
     1123          self.groupBox.findChild(QtGui.QLineEdit,"commandline").setText(palmrunline)
     1124
     1125#         Set selected item to jobname in "available jobs" list
     1126          jobname = str(history_entry[17:])
     1127          jobname = filter(None,jobname.split(" -r"))[1]
     1128          jobname = jobname.strip()
     1129          jobname = filter(None,jobname.split(" "))[0]
     1130          jobname = jobname.replace("\"","")
     1131          item2int = self.list_jobs.findItems(jobname,QtCore.Qt.MatchCaseSensitive)
     1132
     1133          if ( item2int != [] ):
     1134             self.list_jobs.setCurrentItem(item2int[0])
     1135             self.update_input()
     1136
     1137#         Add tooltip tag
     1138          tag = str(history_entry).split('\n')[0]
     1139          tag = filter(None,tag.split("("))[1]
     1140          tag = tag.replace(")","")
     1141          self.groupBox.findChild(QtGui.QLineEdit,"line_tag").setText(tag)
    11371142 
    1138 #      Process palmrungui to set up gui controls
    1139        self.setup_gui(palmrunline)
     1143#         Process palmrungui to set up gui controls
     1144          self.setup_gui(palmrunline)
    11401145
    11411146
     
    16061611          sel_files = self.list_user.selectedItems()
    16071612
    1608           input_dir = job_dir + "/" + sel_job + "/USER/"
     1613          input_dir = job_dir + "/" + sel_job + "/USER_CODE/"
    16091614
    16101615          for i in range(0,len(sel_files)):
     
    17451750    def DiscardHistory(self):
    17461751
    1747 
     1752       global history_entry
     1753       history_entry = ""
    17481754       self.close()
    17491755
Note: See TracChangeset for help on using the changeset viewer.