forked from qt-creator/qt-creator
There was a connect to much, triggering a pages switch on mouse press.
Make Thorbjorn happy. :) Reviewed-by: ck
This commit is contained in:
@@ -69,8 +69,6 @@ OpenPagesManager::OpenPagesManager(QObject *parent)
|
|||||||
m_comboBox = new QComboBox;
|
m_comboBox = new QComboBox;
|
||||||
m_comboBox->setModel(m_model);
|
m_comboBox->setModel(m_model);
|
||||||
m_comboBox->setMinimumContentsLength(40);
|
m_comboBox->setMinimumContentsLength(40);
|
||||||
connect(m_comboBox->view(), SIGNAL(pressed(QModelIndex)), this,
|
|
||||||
SLOT(setCurrentPage(QModelIndex)));
|
|
||||||
connect(m_comboBox, SIGNAL(activated(int)), this, SLOT(setCurrentPage(int)));
|
connect(m_comboBox, SIGNAL(activated(int)), this, SLOT(setCurrentPage(int)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user