Moreover, as your code now stands, each time you click the button, it will add a new connection to startSearchRequest(). So the first time you click the button, nothing happens (as you observe) except that your code now makes a connection to the slot you actually want to execute. The second time you click the button both slots get executed, so not only does your search start, you also add another connection via the original on_btnSearchDialog_clicked() slot. So the third time you click the button, you now get two searches started plus you'll add yet another connection to the search slot. On the fourth click, three searches start, you add another connection... you see how it goes.
Bookmarks