Browse Source

unshadow variable

master
Odilitime 5 years ago
parent
commit
9ea9bb3e23
  1. 10
      src/graphics/opengl/Window.cpp

10
src/graphics/opengl/Window.cpp

@ -213,11 +213,11 @@ bool Window::init() { @@ -213,11 +213,11 @@ bool Window::init() {
navAddressBar->onEnter=[this](std::string value) {
std::cout << "navAddressBar::onEnter got " << value << std::endl;
TabbedComponent *tabComponent = dynamic_cast<TabbedComponent*>(this->tabComponent.get());
if (tabComponent) {
if (!tabComponent->tabs.size()) {
tabComponent->addTab("Loading...");
tabComponent->selectTab(tabComponent->tabs.back());
TabbedComponent *p_tabComponent = dynamic_cast<TabbedComponent*>(this->tabComponent.get());
if (p_tabComponent) {
if (!p_tabComponent->tabs.size()) {
p_tabComponent->addTab("Loading...");
p_tabComponent->selectTab(p_tabComponent->tabs.back());
this->renderDirty = true;
this->render(); // display loading tab before IO

Loading…
Cancel
Save