Revert "Use current document when no URL given in txmt URL"

Pending improved implementation which also handle the case where frontmost document is untitled.

This reverts commit 2beac7080b.
This commit is contained in:
Allan Odgaard
2012-08-14 16:53:15 +02:00
parent 5aaebb9e25
commit e5c2daa05a
3 changed files with 0 additions and 20 deletions

View File

@@ -71,7 +71,6 @@ namespace bundles { struct item_t; typedef std::tr1::shared_ptr<item_t> item_ptr
@property (nonatomic, readonly) NSString* identifier;
@property (nonatomic, assign) BOOL fileBrowserHidden;
@property (nonatomic, readonly) NSString* documentPath;
@property (nonatomic, readonly) NSString* documentFilePath;
@property (nonatomic, readonly) NSString* fileBrowserPath;
@property (nonatomic, readonly) NSString* projectPath;
@property (nonatomic, readonly) NSString* untitledSavePath;

View File

@@ -1199,11 +1199,6 @@ static std::string parent_or_home (std::string const& path)
return [NSString stringWithCxxString:documentTabs.empty() ? NULL_STR : parent_or_home([self selectedDocument]->path())];
}
- (NSString*)documentFilePath
{
return [NSString stringWithCxxString:documentTabs.empty() ? NULL_STR : [self selectedDocument]->path()];
}
- (NSString*)projectPath
{
settings_t const& settings = documentTabs.empty() || [self selectedDocument]->path() == NULL_STR ? settings_for_path(NULL_STR, "", to_s(self.fileBrowserPath)) : [self selectedDocument]->settings();