From d90a6723f216f8e7a36a2d5ee1dc5f75a856c5d6 Mon Sep 17 00:00:00 2001 From: failiz Date: Fri, 21 Jan 2022 09:26:43 +0100 Subject: [PATCH] Update the timer for swapping parts This change fixes issue #1431. I am not sure that this is the right way of fixing this issue, but at least it will mitigate the issue. I would disable the change of the properties by scrolling, except that the property combobox had been selected. This will avoid the fact that you can unintentionally change properties of the part when scrolling through the inspector pane. --- src/mainwindow/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index f0e7d02df..5bd6da88f 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -311,7 +311,7 @@ MainWindow::MainWindow(ReferenceModel *referenceModel, QWidget * parent) : setAcceptDrops(true); m_activeWire = NULL; m_activeConnectorItem = NULL; - m_swapTimer.setInterval(30); + m_swapTimer.setInterval(300); m_swapTimer.setParent(this); m_swapTimer.setSingleShot(true); connect(&m_swapTimer, SIGNAL(timeout()), this, SLOT(swapSelectedTimeout()));