From d476149f4e04e72b90faa649e4cefac2883c4c3a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 1 Sep 2017 22:56:41 +0100 Subject: ooops, placed variable in wrong place --- src/frontend/gui/sisyphus-gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/frontend/gui') diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index e6442e3..36e8070 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -3,8 +3,6 @@ import sys, subprocess, sqlite3 from PyQt5 import QtCore, QtGui, QtWidgets, uic from libsisyphus import * -PKGLIST = self.database.item(self.database.currentRow(), 1).text() - class Sisyphus(QtWidgets.QMainWindow): def __init__(self): super(Sisyphus, self).__init__() @@ -28,9 +26,11 @@ class Sisyphus(QtWidgets.QMainWindow): (resolution.height() / 2) - (self.frameSize().height() / 2)) def install_package(self): + PKGLIST = self.database.item(self.database.currentRow(), 1).text() sisyphus_pkg_auto_install(PKGLIST.split()) def uninstall_package(self): + PKGLIST = self.database.item(self.database.currentRow(), 1).text() sisyphus_pkg_auto_uninstall(PKGLIST.split()) def remove_orphans(self): -- cgit v1.2.3