Skip to content

Commit

Permalink
[systemsettings] Allow vibration to be turned always off
Browse files Browse the repository at this point in the history
  • Loading branch information
pvuorela committed Sep 24, 2013
1 parent c65c8a9 commit d309fa0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/profilecontrol.cpp
Expand Up @@ -151,7 +151,11 @@ int ProfileControl::vibraMode() const
result = VibraNormal;
}
} else {
result = VibraSilent;
if (m_vibraInSilent) {
result = VibraSilent;
} else {
result = VibraNever;
}
}

return result;
Expand All @@ -173,6 +177,8 @@ void ProfileControl::setVibraMode(int mode)
case VibraNormal:
generalValue = true;
break;
case VibraNever:
break;
}

bool changed = false;
Expand Down
3 changes: 2 additions & 1 deletion src/profilecontrol.h
Expand Up @@ -67,7 +67,8 @@ class ProfileControl: public QObject
enum VibraMode {
VibraAlways,
VibraSilent,
VibraNormal
VibraNormal,
VibraNever
};

/*!
Expand Down

0 comments on commit d309fa0

Please sign in to comment.