Commitok összehasonlítása
6 Commit-ok
15e50c7bab
...
9540f27c95
Szerző | SHA1 | Dátum | |
---|---|---|---|
9540f27c95 | |||
244e6aa95e | |||
3e3a4d0cd4 | |||
94fbdb5a92 | |||
abd1b94235 | |||
d2dcc2f95b |
@ -293,6 +293,7 @@ void MainWindow::startIndexing()
|
||||
if(this->indexer->isRunning())
|
||||
{
|
||||
ui->btnStartIndexing->setEnabled(false);
|
||||
|
||||
ui->btnStartIndexing->setText("Start indexing");
|
||||
this->indexer->requestCancellation();
|
||||
return;
|
||||
@ -302,6 +303,8 @@ void MainWindow::startIndexing()
|
||||
ui->resultsTab->setEnabled(false);
|
||||
ui->settingsTab->setEnabled(false);
|
||||
ui->txtPathScanAdd->setEnabled(false);
|
||||
ui->btnAddPath->setEnabled(false);
|
||||
ui->btnChoosePath->setEnabled(false);
|
||||
ui->txtSearch->setEnabled(false);
|
||||
ui->previewProcessBar->setValue(0);
|
||||
ui->previewProcessBar->setVisible(true);
|
||||
@ -349,6 +352,8 @@ void MainWindow::finishIndexing()
|
||||
ui->resultsTab->setEnabled(true);
|
||||
ui->settingsTab->setEnabled(true);
|
||||
ui->txtPathScanAdd->setEnabled(true);
|
||||
ui->btnAddPath->setEnabled(true);
|
||||
ui->btnChoosePath->setEnabled(true);
|
||||
ui->txtSearch->setEnabled(true);
|
||||
if(result.erroredPaths > 0)
|
||||
{
|
||||
|
@ -185,7 +185,12 @@ bool SqliteDbService::setTags(QString path, const QSet<QString> &tags)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
db.commit();
|
||||
if(!db.commit())
|
||||
{
|
||||
db.rollback();
|
||||
Logger::error() << "Failed to commit transaction when saving tags" << Qt::endl;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Betöltés…
x
Reference in New Issue
Block a user