Remove automatic download and installation of PowerISO

Author: Nick Andrik <nick.andrik@gmail.com>
Index: b/acetoneiso/sources/converter.h
===================================================================
--- a/acetoneiso/sources/converter.h
+++ b/acetoneiso/sources/converter.h
@@ -14,17 +14,30 @@
 //    You should have received a copy of the GNU General Public License
 //    along with AcetoneISO.  If not, see <http://www.gnu.org/licenses/>.
 
+QFile & acetoneiso::find_poweriso_exec() {
+	static QFile poweriso_file( QDir::homePath() + "/.acetoneiso/poweriso");
+	if(!poweriso_file.exists()) {
+		// XXX: Do not try to download poweriso automatically since this is a violation of Debian policy
+		//get_poweriso();
+
+		QMessageBox dlBox;
+		dlBox.setTextFormat(Qt::RichText);
+		dlBox.setText(tr("Unable to find") + " poweriso " + tr("in ~/.acetoneiso/.\nPlease download it from: ")
+			+ "<a href='https://www.poweriso.com/poweriso-1.3.tar.gz'>https://www.poweriso.com/poweriso-1.3.tar.gz</a>"
+			+ tr(" and extract it to ~/.acetoneiso/ folder.")
+		);
+		dlBox.exec();
+	}
+	return poweriso_file;
+}
+
 void acetoneiso::converter()
 {
 
-QMessageBox::warning(this, "AcetoneISO",tr("Note:\nISO-9660 filesystem does not support multisector images, this means you will loose all sectors above first sector. Generally speaking, the first sector holds data file.\nIf it's a video game image in MDF/IMG/CCD format, you will probably loose sectors that hold copyprotection files."));
-QDir acetone_bin = QDir::home();
-acetone_bin.cd(".acetoneiso");
-QFile poweriso_file( acetone_bin.path() + "/poweriso");
-	if(!poweriso_file.exists()) {
-	get_poweriso();
-	return;
-	}
+	QMessageBox::warning(this, "AcetoneISO",tr("Note:\nISO-9660 filesystem does not support multisector images, this means you will loose all sectors above first sector. Generally speaking, the first sector holds data file.\nIf it's a video game image in MDF/IMG/CCD format, you will probably loose sectors that hold copyprotection files."));
+	QFile & poweriso_file = find_poweriso_exec();
+	if(!poweriso_file.exists())
+		return;
 	
 	//estrazione qui
 	QDir Home = QDir::home();
@@ -69,12 +82,8 @@ msgBox.exec();
     extract();
    }
  else if  (msgBox.clickedButton() == connectButton2) {
-    QDir acetone_bin = QDir::home();
-    acetone_bin.cd(".acetoneiso");
-    QFile poweriso_file( acetone_bin.path() + "/poweriso");
-    if(!poweriso_file.exists())
-       get_poweriso();
-    else{
+    QFile & poweriso_file = find_poweriso_exec();
+    if(poweriso_file.exists()) {
 //estrazione qui
        QDir Home = QDir::home();
        QString isodaconvertire;
@@ -109,12 +118,8 @@ msgBox.exec();
 
 void acetoneiso::extract()
 {
-QDir acetone_bin = QDir::home();
-acetone_bin.cd(".acetoneiso");
-QFile poweriso_file( acetone_bin.path() + "/poweriso");
-if(!poweriso_file.exists())
-   get_poweriso();
-else {
+QFile & poweriso_file = find_poweriso_exec();
+if(poweriso_file.exists()){
 //estrazione qui
    QDir Home = QDir::home();
    QString isodaestrarre;
@@ -193,12 +198,8 @@ QMessageBox::information(this, "AcetoneI
 
 void acetoneiso::contextExtract()
 {
-QDir acetone_bin = QDir::home();
-acetone_bin.cd(".acetoneiso");
-QFile poweriso_file( acetone_bin.path() + "/poweriso");
-if(!poweriso_file.exists())
-   get_poweriso();
-else {
+QFile & poweriso_file = find_poweriso_exec();
+if(poweriso_file.exists()){
 //estrazione qui
 QDir Home = QDir::home();
 QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
Index: b/acetoneiso/sources/acetoneiso.h
===================================================================
--- a/acetoneiso/sources/acetoneiso.h
+++ b/acetoneiso/sources/acetoneiso.h
@@ -133,6 +133,7 @@ private slots:
     void open_mounted(QListWidgetItem *item);
     void status_mounted();
     void get_poweriso();
+    QFile & find_poweriso_exec();
     void extract_poweriso();
     void messaggio_poweriso();
     void message_extract_finish();
