Skip to content

Commit

Permalink
Vacuum with a twist.
Browse files Browse the repository at this point in the history
  • Loading branch information
textbrowser committed Apr 28, 2024
1 parent ef6e92b commit 17bbc02
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion branches/Documentation/ReleaseNotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ <h4><u>Spot-On 2024.00.00</u></h4>
<li>Elegant source.</li>
<li>Fourteen years of silent awesomeness.</li>
<li>GPGError 1.48; Windows.</li>
<li>Include urls.db in database vacuuming.
<li>Include urls.db in database vacuuming. New confirmation
prompt included.</li>
<li>NTRU memset() size parameter correction; size must be non-zero.
Please read line 506 of src/poly.c. Notice that the len parameter
is an unsigned 16-bit integer.</li>
Expand Down
18 changes: 18 additions & 0 deletions branches/trunk/GUI/spot-on-f.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2292,6 +2292,24 @@ void spoton::slotTimeSliderValueChanged(int value)

void spoton::slotVacuumDatabases(void)
{
QMessageBox mb(this);

mb.setIcon(QMessageBox::Question);
mb.setStandardButtons(QMessageBox::No | QMessageBox::Yes);
mb.setText
(tr("Are you sure that you wish to vacuum all of the SQLite databases?"));
mb.setWindowIcon(windowIcon());
mb.setWindowModality(Qt::ApplicationModal);
mb.setWindowTitle(tr("%1: Confirmation").arg(SPOTON_APPLICATION_NAME));

if(mb.exec() != QMessageBox::Yes)
{
QApplication::processEvents();
return;
}

repaint();
QApplication::processEvents();
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
m_sb.status->setText(tr("Vacuuming all SQLite databases."));
menuBar()->repaint();
Expand Down

0 comments on commit 17bbc02

Please sign in to comment.