Changeset View
Changeset View
Standalone View
Standalone View
kompareurldialog.cpp
Context not available. | |||||
87 | } | 87 | } | ||
---|---|---|---|---|---|
88 | } | 88 | } | ||
89 | 89 | | |||
90 | void KompareURLDialog::slotButtonClicked( int button ) | 90 | void KompareURLDialog::reject() | ||
91 | { | ||||
92 | m_filesPage->restore(); | ||||
93 | m_diffPage->restore(); | ||||
94 | m_viewPage->restore(); | ||||
95 | | ||||
96 | QDialog::reject(); | ||||
97 | } | ||||
98 | | ||||
99 | void KompareURLDialog::accept() | ||||
91 | { | 100 | { | ||
92 | if ( button == QDialogButtonBox::Cancel ) | | |||
93 | { | | |||
94 | reject(); | | |||
95 | return; | | |||
96 | } | | |||
97 | // BUG: 124121 File with filenames to be excluded does not exist so diff complains and no diffs are generated | 101 | // BUG: 124121 File with filenames to be excluded does not exist so diff complains and no diffs are generated | ||
98 | qCDebug(KOMPARESHELL) << "Test to see if the file is an actual file that is given in the file with filenames to exclude field" ; | 102 | qCDebug(KOMPARESHELL) << "Test to see if the file is an actual file that is given in the file with filenames to exclude field" ; | ||
99 | if ( m_diffPage->m_excludeFileNameGroupBox->isChecked() ) | 103 | if ( m_diffPage->m_excludeFileNameGroupBox->isChecked() ) | ||
Context not available. | |||||
123 | 127 | | |||
124 | cfg->sync(); | 128 | cfg->sync(); | ||
125 | 129 | | |||
126 | accept(); | 130 | QDialog::accept(); | ||
127 | } | 131 | } | ||
128 | 132 | | |||
129 | void KompareURLDialog::slotEnableOk() | 133 | void KompareURLDialog::slotEnableOk() | ||
Context not available. |