mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	kconfig: qconf: fix signal connection to invalid slots
If you right-click in the ConfigList window, you will see the following
messages in the console:
QObject::connect: No such slot QAction::setOn(bool) in scripts/kconfig/qconf.cc:888
QObject::connect:  (sender name:   'config')
QObject::connect: No such slot QAction::setOn(bool) in scripts/kconfig/qconf.cc:897
QObject::connect:  (sender name:   'config')
QObject::connect: No such slot QAction::setOn(bool) in scripts/kconfig/qconf.cc:906
QObject::connect:  (sender name:   'config')
Right, there is no such slot in QAction. I think this is a typo of
setChecked.
Due to this bug, when you toggled the menu "Option->Show Name/Range/Data"
the state of the context menu was not previously updated. Fix this.
Fixes: d5d973c3f8 ("Port xconfig to Qt5 - Put back some of the old implementation(part 2)")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
			
			
This commit is contained in:
		
							parent
							
								
									e29a6d633e
								
							
						
					
					
						commit
						d85de3399f
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -885,7 +885,7 @@ void ConfigList::contextMenuEvent(QContextMenuEvent *e)
 | 
				
			||||||
		connect(action, SIGNAL(toggled(bool)),
 | 
							connect(action, SIGNAL(toggled(bool)),
 | 
				
			||||||
			parent(), SLOT(setShowName(bool)));
 | 
								parent(), SLOT(setShowName(bool)));
 | 
				
			||||||
		connect(parent(), SIGNAL(showNameChanged(bool)),
 | 
							connect(parent(), SIGNAL(showNameChanged(bool)),
 | 
				
			||||||
			action, SLOT(setOn(bool)));
 | 
								action, SLOT(setChecked(bool)));
 | 
				
			||||||
		action->setChecked(showName);
 | 
							action->setChecked(showName);
 | 
				
			||||||
		headerPopup->addAction(action);
 | 
							headerPopup->addAction(action);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -894,7 +894,7 @@ void ConfigList::contextMenuEvent(QContextMenuEvent *e)
 | 
				
			||||||
		connect(action, SIGNAL(toggled(bool)),
 | 
							connect(action, SIGNAL(toggled(bool)),
 | 
				
			||||||
			parent(), SLOT(setShowRange(bool)));
 | 
								parent(), SLOT(setShowRange(bool)));
 | 
				
			||||||
		connect(parent(), SIGNAL(showRangeChanged(bool)),
 | 
							connect(parent(), SIGNAL(showRangeChanged(bool)),
 | 
				
			||||||
			action, SLOT(setOn(bool)));
 | 
								action, SLOT(setChecked(bool)));
 | 
				
			||||||
		action->setChecked(showRange);
 | 
							action->setChecked(showRange);
 | 
				
			||||||
		headerPopup->addAction(action);
 | 
							headerPopup->addAction(action);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -903,7 +903,7 @@ void ConfigList::contextMenuEvent(QContextMenuEvent *e)
 | 
				
			||||||
		connect(action, SIGNAL(toggled(bool)),
 | 
							connect(action, SIGNAL(toggled(bool)),
 | 
				
			||||||
			parent(), SLOT(setShowData(bool)));
 | 
								parent(), SLOT(setShowData(bool)));
 | 
				
			||||||
		connect(parent(), SIGNAL(showDataChanged(bool)),
 | 
							connect(parent(), SIGNAL(showDataChanged(bool)),
 | 
				
			||||||
			action, SLOT(setOn(bool)));
 | 
								action, SLOT(setChecked(bool)));
 | 
				
			||||||
		action->setChecked(showData);
 | 
							action->setChecked(showData);
 | 
				
			||||||
		headerPopup->addAction(action);
 | 
							headerPopup->addAction(action);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -1275,7 +1275,7 @@ QMenu* ConfigInfoView::createStandardContextMenu(const QPoint & pos)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	action->setCheckable(true);
 | 
						action->setCheckable(true);
 | 
				
			||||||
	connect(action, SIGNAL(toggled(bool)), SLOT(setShowDebug(bool)));
 | 
						connect(action, SIGNAL(toggled(bool)), SLOT(setShowDebug(bool)));
 | 
				
			||||||
	connect(this, SIGNAL(showDebugChanged(bool)), action, SLOT(setOn(bool)));
 | 
						connect(this, SIGNAL(showDebugChanged(bool)), action, SLOT(setChecked(bool)));
 | 
				
			||||||
	action->setChecked(showDebug());
 | 
						action->setChecked(showDebug());
 | 
				
			||||||
	popup->addSeparator();
 | 
						popup->addSeparator();
 | 
				
			||||||
	popup->addAction(action);
 | 
						popup->addAction(action);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue