Convert devicemanager to QAbstractItemModel
This commit is contained in:
@@ -51,7 +51,7 @@ GPodDevice::GPodDevice(const QUrl &url, DeviceLister *lister, const QString &uni
|
||||
loader_(nullptr),
|
||||
db_(nullptr) {}
|
||||
|
||||
void GPodDevice::Init() {
|
||||
bool GPodDevice::Init() {
|
||||
|
||||
InitBackendDirectory(url_.path(), first_time_);
|
||||
model_->Init();
|
||||
@@ -65,6 +65,8 @@ void GPodDevice::Init() {
|
||||
connect(loader_thread_, SIGNAL(started()), loader_, SLOT(LoadDatabase()));
|
||||
loader_thread_->start();
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
GPodDevice::~GPodDevice() {}
|
||||
|
||||
Reference in New Issue
Block a user