Windows: GUI working ok AFAICS

This commit is contained in:
Jean-Francois Dockes
2015-10-07 18:02:13 +02:00
parent 98c6cd7bf6
commit 5f1b10179d
3 changed files with 27 additions and 9 deletions
+7
View File
@@ -267,6 +267,13 @@ void RclMain::rebuildIndex()
QMessageBox::Cancel,
QMessageBox::NoButton);
if (rep == QMessageBox::Ok) {
#ifdef _WIN32
// Under windows, it's necessary to close the db here, else Xapian
// won't be able to do what it wants with the (open) files. Of course
// if there are several GUI instances, this won't work...
if (rcldb)
rcldb->close();
#endif // _WIN32
// Could also mean that no helpers are missing, but then we
// won't try to show a message anyway (which is what
// firstIndexing is used for)
+6
View File
@@ -146,6 +146,12 @@ void RclMain::execIndexSched()
}
void RclMain::showIndexSched(bool modal)
{
#ifdef _WIN32
QMessageBox::information(this, tr("Index scheduling"),
tr("Sorry, not available under Windows for now, use the File menu entries "
"to update the index"));
return;
#endif
LOGDEB(("showIndexSched()\n"));
if (indexSched == 0) {
indexSched = new IdxSchedW(this);