summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/sourcefile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/sourcefile.cpp')
-rw-r--r--kdevdesigner/designer/sourcefile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kdevdesigner/designer/sourcefile.cpp b/kdevdesigner/designer/sourcefile.cpp
index 7ffb34f0..b1858859 100644
--- a/kdevdesigner/designer/sourcefile.cpp
+++ b/kdevdesigner/designer/sourcefile.cpp
@@ -141,9 +141,9 @@ bool SourceFile::saveAs( bool ignoreModified )
ed->setCaption( i18n( "Edit %1" ).tqarg( filename ) );
setModified( TRUE );
if ( pro->isDummy() ) {
- TQObject *o = ed->tqparent();
+ TQObject *o = ed->parent();
while ( o && !o->isA( "MainWindow" ) )
- o = o->tqparent();
+ o = o->parent();
if ( o )
((MainWindow *)o)->addRecentlyOpenedFile( fn );
}