]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/dialogs/RequestsDialog.cpp
Filter options implementation.
[PrivacyBrowserPC.git] / src / dialogs / RequestsDialog.cpp
index 0d240e7ef6ff3bc1790405629ecaff850b516360..82535e87c69d254bd697e27a05584fc7f1b9e9c7 100644 (file)
@@ -158,23 +158,14 @@ RequestsDialog::RequestsDialog(QWidget *parentWidgetPointer, QList<RequestStruct
     // Connect the buttons.
     connect(dialogButtonBoxPointer, SIGNAL(rejected()), this, SLOT(close()));
 
-    // Open the request detail dialog when
+    // Open the request detail dialog when a cell is clicked.
     connect(tableWidgetPointer, SIGNAL(cellClicked(int, int)), this, SLOT(showRequestDetailDialog(int)));
 }
 
 void RequestsDialog::showRequestDetailDialog(int row)
 {
-    // Get the first table widget item in the row.
-    QTableWidgetItem *rowFirstTableWidgetItemPointer = tableWidgetPointer->item(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();