Browse Source

Show file name only on file chooser button

tags/version-0.9.1
Piotr Orzechowski 6 years ago
parent
commit
8cd23d1fce
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      QSummer.py

+ 2
- 2
QSummer.py View File

@@ -26,7 +26,7 @@ from PySide.QtGui import QAction, QApplication, QComboBox, QDialogButtonBox, QIc
from PySide.QtUiTools import QUiLoader
from hashlib import md5, sha1, sha224, sha256, sha384, sha512
from os import path
from os.path import abspath, dirname, join
from os.path import abspath, basename, dirname, join
import locale
import sys

@@ -153,7 +153,7 @@ class MainController(QObject):
def showFileChooserDialog(self):
self._fileName, _ = QtGui.QFileDialog.getOpenFileName()
if (len(self._fileName) > 0):
self._fileChooser.setText(self._fileName)
self._fileChooser.setText(basename(self._fileName))
self._verifyCancelButton.setEnabled(True)
def showAboutDialog(self):

Loading…
Cancel
Save