fix installing optdep

This commit is contained in:
guinux 2016-04-15 12:09:07 +02:00
parent b59e68459b
commit 547c0394c3
2 changed files with 2 additions and 10 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.19.0 --> <!-- Generated with glade 3.20.0 -->
<interface> <interface>
<requires lib="gtk+" version="3.12"/> <requires lib="gtk+" version="3.12"/>
<template class="PamacChooseDependenciesDialog" parent="GtkDialog"> <template class="PamacChooseDependenciesDialog" parent="GtkDialog">
@ -106,12 +106,6 @@
<attribute name="text">1</attribute> <attribute name="text">1</attribute>
</attributes> </attributes>
</child> </child>
<child>
<object class="GtkCellRendererText" id="renderertext2"/>
<attributes>
<attribute name="text">2</attribute>
</attributes>
</child>
</object> </object>
</child> </child>
</object> </object>

View File

@ -957,11 +957,9 @@ namespace Pamac {
choose_dep_dialog.deps_list.foreach ((model, path, iter) => { choose_dep_dialog.deps_list.foreach ((model, path, iter) => {
bool selected; bool selected;
string name; string name;
// get value at column 0 to know if it is selected
choose_dep_dialog.deps_list.get (iter, 0, out selected, 1, out name); choose_dep_dialog.deps_list.get (iter, 0, out selected, 1, out name);
if (selected) { if (selected) {
// get value at column 1 to get the pkgname AlpmPackage sync_pkg = transaction.find_sync_satisfier (name);
AlpmPackage sync_pkg = transaction.get_sync_pkg (name);
if (sync_pkg.name != "") { if (sync_pkg.name != "") {
transaction.to_install.add (sync_pkg.name); transaction.to_install.add (sync_pkg.name);
} }