Skip to content

Commit

Permalink
Bug fixed when load keyword lists from txt file.
Browse files Browse the repository at this point in the history
  • Loading branch information
sczhengyabin committed Apr 27, 2017
1 parent 8a37cac commit e0dfd40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self):

self.pushButton_load_file.clicked.connect(
lambda: self.lineEdit_path2file.setText(QFileDialog.getOpenFileName(
self, "Load keywords from file", "./", "Text files (*.txt)")))
self, "Load keywords from file", "./", "Text files (*.txt)")[0]))
self.pushButton_output.clicked.connect(
lambda: self.lineEdit_output.setText(QFileDialog.getExistingDirectory(
self, "Set output directory", "./")))
Expand Down

0 comments on commit e0dfd40

Please sign in to comment.