Changeset View
Changeset View
Standalone View
Standalone View
sublime/mainwindow.cpp
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Line(s) | |||||
182 | 182 | | |||
183 | View *MainWindow::activeToolView() const | 183 | View *MainWindow::activeToolView() const | ||
184 | { | 184 | { | ||
185 | return d->activeToolView; | 185 | return d->activeToolView; | ||
186 | } | 186 | } | ||
187 | 187 | | |||
188 | void MainWindow::activateView(Sublime::View* view, bool focus) | 188 | void MainWindow::activateView(Sublime::View* view, bool focus) | ||
189 | { | 189 | { | ||
190 | if (!d->viewContainers.contains(view)) | 190 | if (!d->viewContainers.contains(view) || d->activeView == view) | ||
191 | return; | 191 | return; | ||
192 | 192 | | |||
193 | d->viewContainers[view]->setCurrentWidget(view->widget()); | 193 | d->viewContainers[view]->setCurrentWidget(view->widget()); | ||
194 | 194 | | |||
195 | setActiveView(view, focus); | 195 | setActiveView(view, focus); | ||
196 | d->area->setActiveView(view); | 196 | d->area->setActiveView(view); | ||
197 | } | 197 | } | ||
198 | 198 | | |||
▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines |