We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ffb9e3 commit 9d7cfd1Copy full SHA for 9d7cfd1
QtPyHammer/ui/compile.py
@@ -1,6 +1,7 @@
1
from PyQt5 import QtCore, QtGui, QtWidgets
2
3
from ..utilities import lang
4
+from ..ui import popup
5
import subprocess
6
7
class browser(QtWidgets.QDialog):
@@ -70,6 +71,10 @@ def on_ok_clicked(self):
70
71
game_path = r'C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf'
72
file_path = self.textbox.text()
73
74
+ if not file_path:
75
+ no_text_popup = popup.browser(parent=self, popuptext="Error", msgtext="File path cannot be empty")
76
+ no_text_popup.show()
77
+ return
78
bsp_index = self.bsp_combo_box.currentIndex()
79
vis_index = self.vis_combo_box.currentIndex()
80
rad_index = self.rad_combo_box.currentIndex()
0 commit comments