Ignore:
Timestamp:
Feb 27, 2020 11:29:51 AM (16 months ago)
Author:
maronga
Message:

small adjustments in palmrungui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmrungui

    r4420 r4427  
    2525# -----------------
    2626# $Id$
     27# Small fixes and adjustments
     28#
     29# 4420 2020-02-24 14:13:56Z maronga
    2730# Bugfix: minor fixes related to start buttons
    2831#
     
    11541157       self.load_jobs()
    11551158       self.setEnabled(True)
     1159       self.update_input()
    11561160
    11571161    # Load jobs into list
    11581162    def load_jobs(self):
    11591163       
     1164       selected_job = self.list_jobs.currentItem()
     1165       
     1166       if ( selected_job is not None ):
     1167          jobname = selected_job.text()
     1168       else:
     1169          jobname = ""
     1170
    11601171       self.list_jobs.clear()
    11611172       self.push_copy.setEnabled(False)
     
    11731184             self.list_jobs.addItem(str(list_of_files[i]))
    11741185       
     1186
     1187
     1188       item2int = self.list_jobs.findItems(jobname,QtCore.Qt.MatchCaseSensitive)
     1189       
     1190       if ( item2int != [] ):
     1191          self.list_jobs.setCurrentItem(item2int[0])
    11751192
    11761193
Note: See TracChangeset for help on using the changeset viewer.