Always respect MMLayoutVerticalSplit

This flag used to be ignored when dropping a file onto a window.
This commit is contained in:
Bjorn Winckler
2009-01-17 20:34:51 +01:00
parent 3950b3a6b1
commit f81158c840
+4
View File
@@ -252,6 +252,10 @@ static BOOL isUnsafeMessage(int msgid);
if (layout < 0 || layout > MMLayoutTabs)
layout = MMLayoutTabs;
BOOL splitVert = [ud boolForKey:MMVerticalSplitKey];
if (splitVert && MMLayoutHorizontalSplit == layout)
layout = MMLayoutVerticalSplit;
NSDictionary *args = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:layout], @"layout",
filenames, @"filenames",