layout.addWidget(done);
setLayout(&layout);
+
+ connect(this, SIGNAL(finished(int)),
+ this, SLOT(deleteLater()));
}
void ConnectDialog::indexChanged(int index) {
QString selected_host = hosts.currentText();
if(selected_host.isEmpty()) {
- deleteLater();
return;
}
if(!hosts.itemIcon(hosts.currentIndex()).isNull()) {
emit connectToHost("", 2, 5900); //TODO: quality and port from user input
- deleteLater();
return;
}
settings.sync();
emit connectToHost(QString("vnc://%1").arg(selected_host), quality, 0);
- deleteLater();
}