Changeset 97755 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Dec 6, 2022 10:31:12 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp
r96407 r97755 301 301 if (m_pHistoryComboBox) 302 302 { 303 #ifdef VBOX_IS_QT6_OR_LATER 304 disconnect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentTextChanged), 305 this, &UIFileManagerNavigationWidget::sltHandlePathChange); 303 m_pHistoryComboBox->blockSignals(true); 306 304 m_pHistoryComboBox->clear(); 307 connect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentTextChanged), 308 this, &UIFileManagerNavigationWidget::sltHandlePathChange); 309 #else 310 disconnect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentIndexChanged), 311 this, &UIFileManagerNavigationWidget::sltHandlePathChange); 312 m_pHistoryComboBox->clear(); 313 connect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentIndexChanged), 314 this, &UIFileManagerNavigationWidget::sltHandlePathChange); 315 #endif 305 m_pHistoryComboBox->blockSignals(false); 316 306 } 317 307 … … 348 338 connect(m_pHistoryComboBox, &UIFileManagerHistoryComboBox::sigHidePopup, 349 339 this, &UIFileManagerNavigationWidget::sltHandleHidePopup); 350 #ifdef VBOX_IS_QT6_OR_LATER 351 connect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentTextChanged), 340 connect(m_pHistoryComboBox, &UIFileManagerHistoryComboBox::currentTextChanged, 352 341 this, &UIFileManagerNavigationWidget::sltHandlePathChange); 353 #else354 connect(m_pHistoryComboBox, static_cast<void(QComboBox::*)(const QString&)>(&QComboBox::currentIndexChanged),355 this, &UIFileManagerNavigationWidget::sltHandlePathChange);356 #endif357 342 358 343 m_pContainer->addWidget(m_pBreadCrumbs);
Note:
See TracChangeset
for help on using the changeset viewer.