src/eric7/Project/AddFileDialog.py

branch
server
changeset 10610
bb0149571d94
parent 10605
b6f5e27daeb5
child 11090
f5f5f5803935
equal deleted inserted replaced
10605:b6f5e27daeb5 10610:bb0149571d94
126 ) 126 )
127 directory = ( 127 directory = (
128 sfile if fsInterface.isdir(sfile) else fsInterface.dirname(sfile) 128 sfile if fsInterface.isdir(sfile) else fsInterface.dirname(sfile)
129 ) 129 )
130 else: 130 else:
131 directory = ( 131 directory = sfile if os.path.isdir(sfile) else os.path.dirname(sfile)
132 sfile if os.path.isdir(sfile) else os.path.dirname(sfile)
133 )
134 self.targetDirPicker.setText(directory) 132 self.targetDirPicker.setText(directory)
135 133
136 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(bool(sfile)) 134 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
135 bool(sfile)
136 )
137 137
138 def getData(self): 138 def getData(self):
139 """ 139 """
140 Public slot to retrieve the dialogs data. 140 Public slot to retrieve the dialogs data.
141 141

eric ide

mercurial