fixed case insensitive contacts filtering in boxes, setting as default tg scheme handler

This commit is contained in:
John Preston 2014-12-06 14:21:19 +03:00
parent 7170a0e5c0
commit 77b35891d4
5 changed files with 9 additions and 2 deletions

View file

@ -305,6 +305,8 @@ void AddParticipantInner::updateSel() {
}
void AddParticipantInner::updateFilter(QString filter) {
filter = textSearchKey(filter);
_time = unixtime();
QStringList f;
if (!filter.isEmpty()) {

View file

@ -250,6 +250,8 @@ void ContactsInner::updateSel() {
}
void ContactsInner::updateFilter(QString filter) {
filter = textSearchKey(filter);
QStringList f;
if (!filter.isEmpty()) {
QStringList filterList = filter.split(cWordSplit(), QString::SkipEmptyParts);

View file

@ -276,6 +276,8 @@ void NewGroupInner::updateSel() {
}
void NewGroupInner::updateFilter(QString filter) {
filter = textSearchKey(filter);
QStringList f;
if (!filter.isEmpty()) {
QStringList filterList = filter.split(cWordSplit(), QString::SkipEmptyParts);

View file

@ -638,6 +638,7 @@ void objc_finish() {
}
void objc_registerCustomScheme() {
LSSetDefaultHandlerForURLScheme(CFSTR("tg"), (CFStringRef)[[NSBundle mainBundle] bundleIdentifier]);
}
BOOL _execUpdater(BOOL update = YES) {

View file

@ -18,11 +18,11 @@
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<string>Viewer</string>
<key>CFBundleURLIconFile</key>
<string>AppIcon.icns</string>
<key>CFBundleURLName</key>
<string>com.tdesktop.TelegramUrl</string>
<string>com.tdesktop.Telegram</string>
<key>CFBundleURLSchemes</key>
<array>
<string>tg</string>