Mercurial > hg > easyhg
diff src/settingsdialog.cpp @ 633:db62a0cb3037
* Added setting to specify that diff command should be run once for each selected file, rather than passing all file names to diff command (p4merge doesn't like being given many files)
author | Sam Izzo <sam@humbug.net> |
---|---|
date | Mon, 27 Aug 2012 01:26:57 +1000 |
parents | 5dc24f89b791 |
children | 58ac1b197666 |
line wrap: on
line diff
--- a/src/settingsdialog.cpp Mon Aug 27 01:26:05 2012 +1000 +++ b/src/settingsdialog.cpp Mon Aug 27 01:26:57 2012 +1000 @@ -138,7 +138,10 @@ browse = new QPushButton(tr("Browse...")); pathsLayout->addWidget(browse, row++, 1); connect(browse, SIGNAL(clicked()), this, SLOT(diffPathBrowse())); - + + m_multipleDiffInstances = new QCheckBox(tr("Multiple instances when multiple files are selected")); + pathsLayout->addWidget(m_multipleDiffInstances, row++, 2); + pathsLayout->addWidget(new QLabel(tr("External file-merge program:")), row, 0); m_mergePathLabel = new QLineEdit(); @@ -170,6 +173,7 @@ connect(m_extensionBrowse, SIGNAL(clicked()), this, SLOT(extensionPathBrowse())); pathsLayout->setRowStretch(row, 20); + pathsLayout->setColumnStretch(2, 20); reset(); // loads current defaults from settings @@ -424,6 +428,7 @@ settings.endGroup(); settings.beginGroup(""); settings.remove("useextension"); + settings.remove("multipleDiffInstances"); settings.endGroup(); } @@ -455,6 +460,7 @@ settings.beginGroup(""); m_useExtension->setChecked(settings.value("useextension", true).toBool()); useExtension(m_useExtension->isChecked()); + m_multipleDiffInstances->setChecked(settings.value("multipleDiffInstances", false).toBool()); settings.endGroup(); } @@ -507,6 +513,7 @@ settings.endGroup(); settings.beginGroup(""); settings.setValue("useextension", m_useExtension->isChecked()); + settings.setValue("multipleDiffInstances", m_multipleDiffInstances->isChecked()); settings.endGroup(); QDialog::accept(); }