# HG changeset patch # User Andre Heinecke # Date 1395850639 -3600 # Node ID aab742690bee2f5cbbc26ed10515af945483751e # Parent 3ebebd055d3aa4d1421a45a8faf812e4fa50d675 Fix check for selected items and wait for bytes written. According to the documentation closing the write channel should suffice. But in testing it did not sent over everything. diff -r 3ebebd055d3a -r aab742690bee ui/listupdatedialog.cpp --- a/ui/listupdatedialog.cpp Thu Mar 27 09:08:44 2014 +0100 +++ b/ui/listupdatedialog.cpp Wed Mar 26 17:17:19 2014 +0100 @@ -17,7 +17,6 @@ QDialog(parent), mCertificateList(listToInstall) { - qDebug() << "I am a happy list update dialog"; setupGUI(); } @@ -128,7 +127,7 @@ /* Items to install */ for (int i = 0; i < mCertListWidget->count(); i++) { QListWidgetItem *item = mCertListWidget->item(i); - if (!item->checkState() == Qt::Checked && + if (item->checkState() 1= Qt::Checked && item->data(Qt::UserRole).toString().startsWith("I:")) { continue; } @@ -139,7 +138,7 @@ /* Items to remove */ for (int i = 0; i < mCertListWidget->count(); i++) { QListWidgetItem *item = mCertListWidget->item(i); - if (!item->checkState() == Qt::Checked && + if (!item->checkState() != Qt::Checked && item->data(Qt::UserRole).toString().startsWith("R:")) { continue; } @@ -147,6 +146,7 @@ installerProcess.write("\r\n"); } + installerProcess.waitForBytesWritten(); installerProcess.closeWriteChannel(); installerProcess.waitForFinished();