Moved DialogQuery to Utils.h/.cpp
Added clear commit message history option in settings FossilOrigin-Name: 3ce654a76b15af0c4b7a113cb04314d2906ab1e3
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#include "SettingsDialog.h"
|
||||
#include "ui_SettingsDialog.h"
|
||||
#include <QFileDialog>
|
||||
#include "Utils.h"
|
||||
|
||||
static QString SelectExe(QWidget *parent, const QString &description)
|
||||
{
|
||||
@ -81,3 +82,10 @@ void SettingsDialog::on_btnSelectGMerge_clicked()
|
||||
if(!path.isEmpty())
|
||||
ui->lineGMergeCommand->setText(QDir::toNativeSeparators(path));
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void SettingsDialog::on_btnClearMessageHistory_clicked()
|
||||
{
|
||||
if(DialogQuery(this, tr("Clear Commit Message History"), tr("Are you sure want to clear the commit message history?"))==ANSWER_YES)
|
||||
settings->Mappings[FUEL_SETTING_COMMIT_MSG].Value = QStringList();
|
||||
}
|
||||
|
Reference in New Issue
Block a user