<table><tr><td style="">gregormi added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7087">View Revision</a></tr></table><br /><div><div><p>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.</p>
<p>When I remove the line 125 in Module.cpp: connect(ui->pushButtonCopyInfo, &QPushButton::clicked, this, &Module::copyToClipboard);<br />
then the nothing happens when the button is clicked.</p>
<p>With a web search I only found this <a href="https://stackoverflow.com/questions/34416103/function-connected-to-the-button-is-called-twice-after-one-click" class="remarkup-link" target="_blank" rel="noreferrer">https://stackoverflow.com/questions/34416103/function-connected-to-the-button-is-called-twice-after-one-click</a> which is not the case here. Any idea why the slot method is called twice?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R102 KInfoCenter</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7087">https://phabricator.kde.org/D7087</a></div></div><br /><div><strong>To: </strong>gregormi, ngraham, dhaumann, rkflx<br /><strong>Cc: </strong>rkflx, dhaumann, ltoscano, sebas, elvisangelaccio, cfeck, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, apol, mart<br /></div>