projects
/
stockthis
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
settings saved with backup, and bugfixed 6077
[stockthis]
/
stockthis.py
diff --git
a/stockthis.py
b/stockthis.py
index
31f6a4c
..
8775a57
100644
(file)
--- a/
stockthis.py
+++ b/
stockthis.py
@@
-853,6
+853,10
@@
class StocksPy:
name = entry1.get_text()
shares = button.get_value()
+ if name == '' or symbol == '':
+ self.show_info_banner(widget, "Must add the name and symbol")
+ return
+
self.add_to_portfolio(widget, button, symbol, name)
dlg.destroy()