X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=stockthis.py;h=8775a573bcaf99a8c5aea6d26da1eb067606ca6a;hb=22ccae765e79ba5df135b21f421b2b4fcd948ad6;hp=31f6a4cdc3db69c38598e443a78355428b062d6f;hpb=0e49c9c065759a54b5f497fbc9cd33ba91da056a;p=stockthis diff --git a/stockthis.py b/stockthis.py index 31f6a4c..8775a57 100644 --- 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()