[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: koffice/kexi/widget
From:       Carlos Licea <carlos_licea () hotmail ! com>
Date:       2009-11-12 0:54:28
Message-ID: BLU0-SMTP9361AC9A9184D23436FA2CF2A90 () phx ! gbl
[Download RAW message or body]

On Miércoles 11 Noviembre 2009 16:18:36 Jarosław Staniek escribió:
> SVN commit 1047733 by staniek:
> 
> Table View
> *display "Save Row" and "Cancel Row Changes" buttons on the context toolbar
>  (appears also in forms)
> 
> 
> 
>  M  +4 -1      kexidataawareview.cpp
> 
> 
> --- trunk/koffice/kexi/widget/kexidataawareview.cpp #1047732:1047733
> @@ -91,7 +91,10 @@
>          << KexiStandardAction::sortDescending(this,
>  SLOT(sortDescending()), this); }
>      KActionCollection *ac =
>  KexiMainWindowIface::global()->actionCollection(); -    viewActions << (a
>  = dynamic_cast<KAction*>(ac->action("edit_find"))); +    viewActions
> +        << dynamic_cast<KAction*>(ac->action("data_save_row"))
> +        << dynamic_cast<KAction*>(ac->action("data_cancel_row_changes"))
> +        << dynamic_cast<KAction*>(ac->action("edit_find"));
>      setViewActions(viewActions);
> 
>      plugSharedAction("edit_delete_row", this, SLOT(deleteCurrentRow()));
> 
Seems that you don't check the result of the dynamic_cast, shouldn't it be 
changed to static_cast?
--
Carlos

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic