File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ void DbBackupsTrackerController::askForExportBackup()
157157 }
158158 };
159159
160- PromptMessage *message = new PromptMessage (tr ( " Credentials on the device are more recent. " ) + " <br>" +
160+ PromptMessage *message = new PromptMessage (PromptWidget:: MORE_RECENT_BACKUP_PROMPT + " <br>" +
161161 tr (" Do you want to export your database?" ),
162162 onAccept, onReject);
163163 window->showPrompt (message);
Original file line number Diff line number Diff line change 99
1010QString PromptWidget::MMM_ERROR = tr(" Memory Management Error" );
1111QString PromptWidget::BACKUP_PROMPT = tr(" You haven't made a backup of your database in a while. " );
12+ QString PromptWidget::MORE_RECENT_BACKUP_PROMPT = tr(" Credentials on the device are more recent. " );
1213
1314PromptWidget::PromptWidget (QWidget *parent) :
1415 QFrame(parent),
@@ -85,7 +86,8 @@ bool PromptWidget::isMMMErrorPrompt() const
8586
8687bool PromptWidget::isBackupPrompt () const
8788{
88- return m_promptMessage && m_messageLabel->text ().contains (BACKUP_PROMPT );
89+ return m_promptMessage && (m_messageLabel->text ().contains (BACKUP_PROMPT ) ||
90+ m_messageLabel->text ().contains (MORE_RECENT_BACKUP_PROMPT ));
8991}
9092
9193void PromptWidget::onAccepted ()
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ class PromptWidget : public QFrame
5656
5757 static QString MMM_ERROR ;
5858 static QString BACKUP_PROMPT ;
59+ static QString MORE_RECENT_BACKUP_PROMPT ;
5960
6061signals:
6162 void accepted ();
You can’t perform that action at this time.
0 commit comments