gui: prevent submitting blank queries to db (seems to hang sqlite)
This commit is contained in:
parent
7573cf0453
commit
90259fb2b9
4
main.go
4
main.go
@ -756,6 +756,10 @@ func (f *TMainForm) OnQueryExecute(sender vcl.IObject) {
|
|||||||
queryString = f.queryInput.SelText() // Just the selected text
|
queryString = f.queryInput.SelText() // Just the selected text
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.TrimSpace(queryString) == "" {
|
||||||
|
return // prevent blank query
|
||||||
|
}
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
node := f.Buckets.Selected()
|
node := f.Buckets.Selected()
|
||||||
if node == nil {
|
if node == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user