+ fix switching to another mdi view when using the sketcher creation command from task panel
This commit is contained in:
parent
568f2634fe
commit
134acba916
|
@ -593,6 +593,8 @@ void TaskView::updateWatcher(void)
|
||||||
// to the mdi area which may switch to another mdi view which is not an
|
// to the mdi area which may switch to another mdi view which is not an
|
||||||
// acceptable behaviour.
|
// acceptable behaviour.
|
||||||
QWidget *fw = QApplication::focusWidget();
|
QWidget *fw = QApplication::focusWidget();
|
||||||
|
if (!fw)
|
||||||
|
this->setFocus();
|
||||||
QPointer<QWidget> fwp = fw;
|
QPointer<QWidget> fwp = fw;
|
||||||
while (fw && !fw->isWindow()) {
|
while (fw && !fw->isWindow()) {
|
||||||
if (fw == this) {
|
if (fw == this) {
|
||||||
|
@ -666,6 +668,8 @@ void TaskView::removeTaskWatcher(void)
|
||||||
// to the mdi area which may switch to another mdi view which is not an
|
// to the mdi area which may switch to another mdi view which is not an
|
||||||
// acceptable behaviour.
|
// acceptable behaviour.
|
||||||
QWidget *fw = QApplication::focusWidget();
|
QWidget *fw = QApplication::focusWidget();
|
||||||
|
if (!fw)
|
||||||
|
this->setFocus();
|
||||||
while (fw && !fw->isWindow()) {
|
while (fw && !fw->isWindow()) {
|
||||||
if (fw == this) {
|
if (fw == this) {
|
||||||
this->setFocus();
|
this->setFocus();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user