gui: prevent submitting blank queries to db (seems to hang sqlite)

This commit is contained in:
mappu 2024-07-18 17:09:48 +12:00
parent 7573cf0453
commit 90259fb2b9

View File

@ -756,6 +756,10 @@ func (f *TMainForm) OnQueryExecute(sender vcl.IObject) {
queryString = f.queryInput.SelText() // Just the selected text
}
if strings.TrimSpace(queryString) == "" {
return // prevent blank query
}
// Execute
node := f.Buckets.Selected()
if node == nil {