From a43bbfcc4d20265ecf927119a0676d0b7f651aaa Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Sat, 23 Aug 2008 00:02:23 -0400 Subject: [PATCH] Clarified barrybackup error message when no records available Added a check so that "no databases selected" and "no records available" are two distinct error messages. --- ChangeLog | 3 +++ gui/src/BackupWindow.cc | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fecc4906..ace2ee25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,9 @@ Release: version 0.14 - 2008/08/?? -dbg and -dev package - Bump Standards-Version to 3.8.0 - updated AUTHORS + - clarified barrybackup error message when no records available + Added a check so that "no databases selected" and + "no records available" are two distinct error messages. 2008/08/21 - applied ppp chat script patch from Mick Reed - updated RPM and Debian packages with new tmobileus ppp scripts diff --git a/gui/src/BackupWindow.cc b/gui/src/BackupWindow.cc index cc78d7a6..2640c681 100644 --- a/gui/src/BackupWindow.cc +++ b/gui/src/BackupWindow.cc @@ -310,6 +310,13 @@ void BackupWindow::on_backup() return; } + // anything to do? + if( m_pConfig->GetBackupList().size() == 0 ) { + Gtk::MessageDialog msg("No databases selected in configuration."); + msg.run(); + return; + } + // prepare for the progress bar m_recordTotal = m_dev.GetDeviceRecordTotal(m_pConfig->GetBackupList()); m_finishedRecords = 0; @@ -317,7 +324,7 @@ void BackupWindow::on_backup() // anything to do? if( m_recordTotal == 0 ) { - Gtk::MessageDialog msg("No databases selected in configuration."); + Gtk::MessageDialog msg("There are no records available in the selected databases."); msg.run(); return; } -- 2.11.4.GIT