summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/designer/designer/sourcefile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/tools/designer/designer/sourcefile.cpp')
-rw-r--r--tqtinterface/qt4/tools/designer/designer/sourcefile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tqtinterface/qt4/tools/designer/designer/sourcefile.cpp b/tqtinterface/qt4/tools/designer/designer/sourcefile.cpp
index 79a7353..3dd8f7a 100644
--- a/tqtinterface/qt4/tools/designer/designer/sourcefile.cpp
+++ b/tqtinterface/qt4/tools/designer/designer/sourcefile.cpp
@@ -145,9 +145,9 @@ bool SourceFile::saveAs( bool ignoreModified )
ed->setCaption( tr( "Edit %1" ).arg( 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 );
}