aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryFavoriteManager.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPQueryFavoriteManager.m')
-rw-r--r--Source/SPQueryFavoriteManager.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m
index 324a4850..8014c8c5 100644
--- a/Source/SPQueryFavoriteManager.m
+++ b/Source/SPQueryFavoriteManager.m
@@ -340,6 +340,15 @@
}
/**
+ * Insert placeholder - the placeholder string is stored as tooltip
+ */
+- (IBAction)insertPlaceholder:(id)sender
+{
+ NSString *placeholder = [[[sender selectedItem] toolTip] substringToIndex:[[[sender selectedItem] toolTip] rangeOfString:@" – "].location];
+ [favoriteQueryTextView insertText:placeholder];
+}
+
+/**
* Closes the query favorite manager
*/
- (IBAction)closeQueryManagerSheet:(id)sender