[Kstars-devel] KDE/kdeedu/kstars/kstars
Akarsh Simha
akarshsimha at gmail.com
Thu May 29 21:28:32 CEST 2008
SVN commit 814262 by asimha:
Removing redundant NULL checks for m_CurrentLink in the Details
Dialog, caused by both Jasem and me commiting the same changes.
CCMAIL: kstars-devel at kde.org
M +0 -11 detaildialog.cpp
--- trunk/KDE/kdeedu/kstars/kstars/detaildialog.cpp #814261:814262
@@ -441,9 +441,6 @@
if (m_CurrentLink == NULL) return;
- if ( m_CurrentLink == NULL )
- return;
-
if ( m_CurrentLink->listWidget() == Links->InfoTitleList ) {
int i = selectedObject->InfoTitle.indexOf( m_CurrentLink->text() );
if (i >= 0) URL = QString( selectedObject->InfoList.at( i ) );
@@ -497,10 +494,6 @@
editDialog.setButtons( KDialog::Ok | KDialog::Cancel );
QFrame editFrame( &editDialog );
- if ( m_CurrentLink == NULL ) { // We haven't selected anything
- return;
- }
-
if ( m_CurrentLink->listWidget() == Links->InfoTitleList )
{
row = selectedObject->InfoTitle.indexOf( m_CurrentLink->text() );
@@ -596,10 +589,6 @@
if (m_CurrentLink == NULL) return;
- if ( m_CurrentLink == NULL ) { // We haven't selected anything
- return;
- }
-
if ( m_CurrentLink->listWidget() == Links->InfoTitleList )
{
row = selectedObject->InfoTitle.indexOf( m_CurrentLink->text() );
More information about the Kstars-devel
mailing list