gregormi added a comment.

  I added some qDebug code in Module::copyToClipboard() and noticed that the 
method is always called twice when the Copy to clipboard button is clicked.
  
  When I remove the line 125 in Module.cpp: connect(ui->pushButtonCopyInfo, 
&QPushButton::clicked, this, &Module::copyToClipboard);
  then the nothing happens when the button is clicked.
  
  With a web search I only found this 
https://stackoverflow.com/questions/34416103/function-connected-to-the-button-is-called-twice-after-one-click
 which is not the case here. Any idea why the slot method is called twice?

REPOSITORY
  R102 KInfoCenter

REVISION DETAIL
  https://phabricator.kde.org/D7087

To: gregormi, ngraham, dhaumann, rkflx
Cc: rkflx, dhaumann, ltoscano, sebas, elvisangelaccio, cfeck, plasma-devel, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, apol, 
mart

Reply via email to