~ubuntu-branches/debian/sid/librecad/sid

« back to all changes in this revision

Viewing changes to src/actions/rs_actionselectsingle.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2011-12-17 20:08:57 UTC
  • mfrom: (0.2.4)
  • Revision ID: package-import@ubuntu.com-20111217200857-r9wmynaloj230qm1
Tags: 1.0.0+nolibs-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
 
35
35
RS_ActionSelectSingle::RS_ActionSelectSingle(RS_EntityContainer& container,
36
 
        RS_GraphicView& graphicView)
37
 
        :RS_ActionInterface("Select Entities", container, graphicView) {
 
36
                                             RS_GraphicView& graphicView,RS_ActionSelect* actionSelect)
 
37
    :RS_ActionInterface("Select Entities", container, graphicView) {
 
38
    this->actionSelect=actionSelect;
38
39
 
39
40
    en = NULL;
40
41
}
69
70
 
70
71
void RS_ActionSelectSingle::mouseReleaseEvent(QMouseEvent* e) {
71
72
    if (e->button()==Qt::RightButton) {
 
73
            //need to finish the parent RS_ActionSelect as well, bug#3437138
 
74
        actionSelect->requestFinish();
72
75
        init(getStatus()-1);
73
76
    } else {
74
77
        en = catchEntity(e);