mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 17:59:43 +02:00
fix: add validation for empty search input in return_pressed method
This commit is contained in:
@@ -144,6 +144,10 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
|||||||
|
|
||||||
def return_pressed(self):
|
def return_pressed(self):
|
||||||
search_text = self.searchbar.text()
|
search_text = self.searchbar.text()
|
||||||
|
if search_text == "":
|
||||||
|
if debug:
|
||||||
|
print("Error: Can't search for nothing")
|
||||||
|
return
|
||||||
if debug:
|
if debug:
|
||||||
print("User searched for:", search_text)
|
print("User searched for:", search_text)
|
||||||
if tracker == "uztracker":
|
if tracker == "uztracker":
|
||||||
|
|||||||
Reference in New Issue
Block a user