Hi all,

It's been a while since I tried to programme with Qt and I already encoutered my first problem :-)

Why does the following QMessage appear twice after the signal is emitted?

This is my code (parts of it)

Qt Code:
  1. connect(ui.tvDir, SIGNAL(activated(QModelIndex)), this, SLOT(on_tvDir_activated(QModelIndex)));
To copy to clipboard, switch view to plain text mode 

and

Qt Code:
  1. void MainForm::on_tvDir_activated(QModelIndex index)
  2. {
  3. ...
  4.  
  5. if( ext.toUpper() == "GEF" )
  6. QMessageBox::information(this, "test", "found gef file");
  7. //ThisMessage is shown twice?!
  8. }
To copy to clipboard, switch view to plain text mode 

Thanks in advance