launcher/prompts.cpp

changeset 52
7dcfac8a9f17
parent 46
07578e081ae8
child 66
c68545f1aecb
--- a/launcher/prompts.cpp	Sun Jun 07 18:31:19 2015 +0300
+++ b/launcher/prompts.cpp	Sun Jun 07 18:48:06 2015 +0300
@@ -44,11 +44,12 @@
 
 	// Replace the placeholders
 	QString text = ui->m_description->text();
-	text.replace ("<DEMO>", basename (fileName));
-	text.replace ("<VERSION>", binaryName);
+	text.replace ("{{DEMO}}", basename (fileName));
+	text.replace ("{{VERSION}}", binaryName);
 	ui->m_description->setText (text);
 
-	connect (ui->m_addVersion, SIGNAL (clicked (bool)), this, SLOT (addBinary()));
+	connect (ui->buttonBox, SIGNAL (accepted()), this, SLOT (addBinary()));
+	connect (ui->buttonBox, SIGNAL (rejected()), this, SLOT (reject()));
 	connect (ui->m_findBinary, SIGNAL (clicked (bool)), this, SLOT (findBinary()));
 	setWindowTitle (versionSignature());
 }

mercurial