Update mindtoolbar.cpp

better control of tool bar