[Uml-devel] KDE/kdesdk/umbrello/umbrello

Andi Fischer andi.fischer at hispeed.ch
Sat Aug 16 15:43:48 UTC 2008


SVN commit 848011 by fischer:

Fixing two compile warnings.

 M  +3 -3      umldoc.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/umldoc.cpp #848010:848011
@@ -1097,7 +1097,7 @@
             KMessageBox::error(0, i18n("That is an invalid name."), i18n("Invalid Name"));
         else {
             if (p->findChildObject(name) == NULL
-                    || ((o->getBaseType() == Uml::ot_Operation) && KMessageBox::warningYesNo( kapp -> mainWidget() ,
+                    || ((o->getBaseType() == Uml::ot_Operation) && KMessageBox::warningYesNo(0,
                             i18n( "The name you entered was not unique.\nIs this what you wanted?" ),
                             i18n( "Name Not Unique"),KGuiItem(i18n("Use Name")),KGuiItem(i18n("Enter New Name"))) == KMessageBox::Yes) ) {
                 UMLApp::app()->executeCommand(new CmdRenameUMLObject(o,name));
@@ -2134,14 +2134,14 @@
 void UMLDoc::initSaveTimer()
 {
     if( m_pAutoSaveTimer ) {
-        m_pAutoSaveTimer -> stop();
+        m_pAutoSaveTimer->stop();
         disconnect( m_pAutoSaveTimer, SIGNAL( timeout() ), this, SLOT( slotAutoSave() ) );
         delete m_pAutoSaveTimer;
         m_pAutoSaveTimer = 0;
     }
     Settings::OptionState optionState = Settings::getOptionState();
     if( optionState.generalState.autosave ) {
-        m_pAutoSaveTimer = new QTimer(this, "_AUTOSAVETIMER_" );
+        m_pAutoSaveTimer = new QTimer(this);
         connect( m_pAutoSaveTimer, SIGNAL( timeout() ), this, SLOT( slotAutoSave() ) );
         m_pAutoSaveTimer->setSingleShot( false );
         m_pAutoSaveTimer->start( optionState.generalState.autosavetime * 60000 );




More information about the umbrello-devel mailing list