Changeset View
Changeset View
Standalone View
Standalone View
src/thread.cpp
Show All 35 Lines | |||||
36 | 36 | | |||
37 | void Thread::start() | 37 | void Thread::start() | ||
38 | { | 38 | { | ||
39 | emit started(); | 39 | emit started(); | ||
40 | 40 | | |||
41 | bool success = false; | 41 | bool success = false; | ||
42 | if(urlPackage.isEmpty()) { | 42 | if(urlPackage.isEmpty()) { | ||
43 | qWarning() << "*** ERROR: There's nothing to do"; | 43 | qWarning() << "*** ERROR: There's nothing to do"; | ||
44 | } else if(action == "icon") { | | |||
45 | // qDebug() << "Installing icons theme"; | | |||
46 | success = Installer::installIconTheme(urlPackage); | | |||
47 | } else if(action == "theme") { | 44 | } else if(action == "theme") { | ||
48 | // qDebug() << "Installing GTK theme"; | 45 | // qDebug() << "Installing GTK theme"; | ||
49 | success = Installer::installTheme(urlPackage); | 46 | success = Installer::installTheme(urlPackage); | ||
50 | } | 47 | } | ||
51 | setError(success); | 48 | setError(success); | ||
52 | emitResult(); | 49 | emitResult(); | ||
53 | } | 50 | } | ||
54 | 51 | | |||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |