Changeset View
Changeset View
Standalone View
Standalone View
environments/tools/kpToolEnvironment.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | |||||
93 | } | 93 | } | ||
94 | 94 | | |||
95 | // public | 95 | // public | ||
96 | bool kpToolEnvironment::selectPreviousTool () const | 96 | bool kpToolEnvironment::selectPreviousTool () const | ||
97 | { | 97 | { | ||
98 | kpToolToolBar *tb = toolToolBar (); | 98 | kpToolToolBar *tb = toolToolBar (); | ||
99 | 99 | | |||
100 | // (don't end up with no tool selected) | 100 | // (don't end up with no tool selected) | ||
101 | if (!tb->previousTool ()) | 101 | if (!tb->previousTool ()) { | ||
102 | return false; | 102 | return false; | ||
103 | } | ||||
103 | 104 | | |||
104 | // endInternal() will be called by kpMainWindow (thanks to this line) | 105 | // endInternal() will be called by kpMainWindow (thanks to this line) | ||
105 | // so we won't have the view anymore | 106 | // so we won't have the view anymore | ||
106 | // TODO: Update comment. | 107 | // TODO: Update comment. | ||
107 | tb->selectPreviousTool (); | 108 | tb->selectPreviousTool (); | ||
108 | return true; | 109 | return true; | ||
109 | } | 110 | } | ||
110 | 111 | | |||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |