forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.8' into 4.9
Change-Id: I8c11be2a6cb4301be4ef639ba25ee9735960db71
This commit is contained in:
@@ -406,6 +406,7 @@ ExternalToolConfig::ExternalToolConfig(QWidget *parent) :
|
|||||||
m_model(new ExternalToolModel(this))
|
m_model(new ExternalToolModel(this))
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
ui->executable->setExpectedKind(Utils::PathChooser::ExistingCommand);
|
||||||
ui->scrollArea->viewport()->setAutoFillBackground(false);
|
ui->scrollArea->viewport()->setAutoFillBackground(false);
|
||||||
ui->scrollAreaWidgetContents->setAutoFillBackground(false);
|
ui->scrollAreaWidgetContents->setAutoFillBackground(false);
|
||||||
ui->toolTree->setModel(m_model);
|
ui->toolTree->setModel(m_model);
|
||||||
|
@@ -409,7 +409,7 @@ void ThreadsHandler::setThreads(const GdbMi &data)
|
|||||||
if (!m_currentThread && threads.childCount() > 0)
|
if (!m_currentThread && threads.childCount() > 0)
|
||||||
m_currentThread = rootItem()->childAt(0);
|
m_currentThread = rootItem()->childAt(0);
|
||||||
|
|
||||||
if (!m_currentThread) {
|
if (m_currentThread) {
|
||||||
const QModelIndex currentThreadIndex = m_currentThread->index();
|
const QModelIndex currentThreadIndex = m_currentThread->index();
|
||||||
threadSwitcher()->setCurrentIndex(currentThreadIndex.row());
|
threadSwitcher()->setCurrentIndex(currentThreadIndex.row());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user