X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fdialogs%2FRequestsDialog.cpp;fp=src%2Fdialogs%2FRequestsDialog.cpp;h=82535e87c69d254bd697e27a05584fc7f1b9e9c7;hb=f8f8d907d0caa128abf73696f812f8e92db812b7;hp=0d240e7ef6ff3bc1790405629ecaff850b516360;hpb=a44e607fb5398c80c5de2629017865ae749e8fbf;p=PrivacyBrowserPC.git diff --git a/src/dialogs/RequestsDialog.cpp b/src/dialogs/RequestsDialog.cpp index 0d240e7..82535e8 100644 --- a/src/dialogs/RequestsDialog.cpp +++ b/src/dialogs/RequestsDialog.cpp @@ -158,23 +158,14 @@ RequestsDialog::RequestsDialog(QWidget *parentWidgetPointer, QListitem(row, 0); - - // Get the data variant. - QVariant dataVariant = rowFirstTableWidgetItemPointer->data(Qt::UserRole); - - // Get the request struct byte array from the data variant. - QByteArray requestStructByteArray = dataVariant.toByteArray(); - // Instantiate the request details dialog. - RequestDetailDialog *requestDetailDialogPointer = new RequestDetailDialog(this, requestStructByteArray); + RequestDetailDialog *requestDetailDialogPointer = new RequestDetailDialog(this, tableWidgetPointer, row); // Show the dialog. requestDetailDialogPointer->show();