title: Function connected to the button is called twice after one click
body: <p>I have a problem with slots and signals. I created buttons and connected them to the clicked() slot. Then i decided to connect signals and slots manually and since then when I click the button it calls its function twice.</p>
  
  <pre><code>connect(ui-&gt;okButton, SIGNAL(clicked()), this, SLOT(on_okButton_clicked()));
  
  void settingswindow::on_okButton_clicked()
  {
      qDebug() &lt;&lt; "ok clicked";
      this-&gt;close();
  }
  </code></pre>
  
  <p>I was looking for the answer on google, but all i found was this: <a href="https://stackoverflow.com/questions/17717835/where-is-the-generated-code-of-qt-signals-slots-editor">Where is the generated code of qt signals slots editor</a> but my *.ui file looks like this: <a href="http://pastebin.com/Wthaiw0U" rel="nofollow noreferrer">pastebin to the code</a>. As you can see there's only one line with  and nothing more. I can't find where the information about signals and slots is saved. Rebuild and clean options won't help. </p>