This code can be simplified.

This commit is contained in:
dt
2009-05-05 15:42:52 +02:00
parent 771f30a60c
commit 46e71d0fe0
11 changed files with 25 additions and 33 deletions

View File

@@ -97,16 +97,13 @@ QString SettingsPage::trCategory() const
QWidget *SettingsPage::createPage(QWidget *parent)
{
if (!m_widget)
m_widget = new SettingsPageWidget(parent);
m_widget = new SettingsPageWidget(parent);
m_widget->setSettings(GitPlugin::instance()->settings());
return m_widget;
}
void SettingsPage::apply()
{
if (!m_widget)
return;
const GitSettings newSettings = m_widget->settings();
// Warn if git cannot be found in path if the widget is on top
if (m_widget->isVisible()) {